sitemodel_field_manage.tpl.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');?>
  4. <div class="subnav">
  5. <h2 class="title-1 line-x f14 fb blue lh28"><?php echo L('model_manage');?>--<?php echo $r['name'];?><?php echo L('field_manage');?></h2>
  6. <div class="content-menu ib-a blue line-x"><a class="add fb" href="?m=content&c=sitemodel_field&a=add&modelid=<?php echo $modelid?>&menuid=<?php echo $_GET['menuid']?>"><em><?php echo L('add_field');?></em></a>
  7.  <a class="on" href="?m=content&c=sitemodel_field&a=init&modelid=<?php echo $modelid?>&menuid=<?php echo $_GET['menuid']?>"><em><?php echo L('manage_field');?></em></a><span>|</span><a href="?m=content&c=sitemodel_field&a=public_priview&modelid=<?php echo $modelid?>&menuid=<?php echo $_GET['menuid']?>" target="_blank"><em><?php echo L('priview_modelfield');?></em></a>
  8. </div></div>
  9. <div class="pad-lr-10">
  10. <form name="myform" action="?m=content&c=sitemodel_field&a=listorder" method="post">
  11. <div class="table-list">
  12. <table width="100%" cellspacing="0" >
  13. <thead>
  14. <tr>
  15. <th width="70"><?php echo L('listorder')?></th>
  16. <th width="90"><?php echo L('fieldname')?></th>
  17. <th width="100"><?php echo L('cnames');?></th>
  18. <th width="100"><?php echo L('type');?></th>
  19. <th width="50"><?php echo L('system');?></th>
  20. <th width="50"><?php echo L('must_input');?></th>
  21. <th width="50"><?php echo L('search');?></th>
  22. <th width="50"><?php echo L('listorder');?></th>
  23. <th width="50"><?php echo L('contribute');?></th>
  24. <th ><?php echo L('operations_manage');?></th>
  25. </tr>
  26. </thead>
  27. <tbody class="td-line">
  28. <?php
  29. foreach($datas as $r) {
  30. $tablename = L($r['tablename']);
  31. ?>
  32. <tr>
  33. <td align='center' width='70'><input name='listorders[<?php echo $r['fieldid']?>]' type='text' size='3' value='<?php echo $r['listorder']?>' class='input-text-c'></td>
  34. <td width='90'><?php echo $r['field']?></td>
  35. <td width="100"><?php echo $r['name']?></td>
  36. <td width="100" align='center'><?php echo $r['formtype']?></td>
  37. <td width="50" align='center'><?php echo $r['issystem'] ? L('icon_unlock') : L('icon_locked')?></td>
  38. <td width="50" align='center'><?php echo $r['minlength'] ? L('icon_unlock') : L('icon_locked')?></td>
  39. <td width="50" align='center'><?php echo $r['issearch'] ? L('icon_unlock') : L('icon_locked')?></td>
  40. <td width="50" align='center'><?php echo $r['isorder'] ? L('icon_unlock') : L('icon_locked')?></td>
  41. <td width="50" align='center'><?php echo $r['isadd'] ? L('icon_unlock') : L('icon_locked')?></td>
  42. <td align='center'> <a href="?m=content&c=sitemodel_field&a=edit&modelid=<?php echo $r['modelid']?>&fieldid=<?php echo $r['fieldid']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo L('edit');?></a> |
  43. <?php if(!in_array($r['field'],$forbid_fields)) { ?>
  44. <a href="?m=content&c=sitemodel_field&a=disabled&disabled=<?php echo $r['disabled'];?>&modelid=<?php echo $r['modelid']?>&fieldid=<?php echo $r['fieldid']?>&fieldid=<?php echo $r['fieldid']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo $r['disabled'] ? L('field_enabled') : L('field_disabled');?></a>
  45. <?php } else { ?><font color="#BEBEBE"> <?php echo L('field_disabled');?> </font><?php } ?>|<?php if(!in_array($r['field'],$forbid_delete)) {?>
  46. <a href="javascript:confirmurl('?m=content&c=sitemodel_field&a=delete&modelid=<?php echo $r['modelid']?>&fieldid=<?php echo $r['fieldid']?>&menuid=<?php echo $_GET['menuid']?>','<?php echo L('confirm',array('message'=>$r['name']))?>')"><?php echo L('delete')?></a><?php } else {?><font color="#BEBEBE"> <?php echo L('delete');?></font><?php }?> </td>
  47. </tr>
  48. <?php } ?>
  49. </tbody>
  50. </table>
  51. <div class="btn"><input type="submit" class="button" name="dosubmit" value="<?php echo L('listorder');?>" /></div></div>
  52. </form>
  53. </div>
  54. </body>
  55. </html>