formguide_preview.tpl.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header', 'admin');
  4. ?>
  5. <script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
  6. <link href="<?php echo CSS_PATH?>table_form.css" rel="stylesheet" type="text/css" />
  7. <link href="<?php echo CSS_PATH?>dialog.css" rel="stylesheet" type="text/css" />
  8. <div class="subnav">
  9. <h2 class="title-1 line-x f14 fb blue lh28"><?php echo $f_info['name']?>--<?php echo L('form_preview')?></h2>
  10. <div class="content-menu ib-a blue line-x">
  11.   <?php if(isset($big_menu)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1].'</em></a> ';?><a class="on" href="?m=formguide&c=formguide&a=init"><em><?php echo L('return_list')?></em></a></div>
  12. </div>
  13. <div class="pad-10">
  14. <table class="table_form" width="100%" cellspacing="0">
  15. <tbody>
  16. <?php
  17. if(is_array($forminfos_data)) {
  18. foreach($forminfos_data as $field=>$info) {
  19. if($info['isomnipotent']) continue;
  20. if($info['formtype']=='omnipotent') {
  21. foreach($forminfos_data as $_fm=>$_fm_value) {
  22. if($_fm_value['isomnipotent']) {
  23. $info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
  24. }
  25. }
  26. }
  27. ?>
  28. <tr>
  29. <th width="80"><?php if($info['star']){ ?> <font color="red">*</font><?php } ?> <?php echo $info['name']?>
  30. </th>
  31. <td><?php echo $info['form']?> <?php echo $info['tips']?></td>
  32. </tr>
  33. <?php
  34. } }
  35. ?>
  36. </tbody>
  37. </table>
  38. <input type="submit" class="button" name="dosubmit" id="dosubmit" value=" <?php echo L('ok')?> ">&nbsp;<input type="reset" class="button" value=" <?php echo L('clear')?> ">
  39. </div>
  40. </body>
  41. </html>