mail_template.tpl.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php include mymps_tpl('inc_head');?>
  2. <form action="?part=template" method="post"/>
  3. <div id="<?=MPS_SOFTNAME?>">
  4. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  5. <tr class="firstr">
  6. <td><input class="checkbox" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 删?</td>
  7. <td>模板主题</td>
  8. <td>标识码</td>
  9. <td>邮件类型</td>
  10. <td>模板类型</td>
  11. <td>修改时间</td>
  12. <td>编辑</td>
  13. </tr>
  14. <?php foreach($tpl as $tpl){?>
  15. <tr bgcolor="white">
  16. <td><input class="checkbox" type='checkbox' name='delids[]' value='<?=$tpl[template_id]?>' id="<?=$tpl[template_id]?>" <?php if($tpl[is_sys] == 1){?> disabled<?}?>></td>
  17. <td><?=$tpl[template_subject]?></td>
  18. <td><?=$tpl[template_code]?></td>
  19. <td><?php echo $tpl[is_html] == 1 ? 'HTML' : '文本' ;?></td>
  20. <td><?php echo $tpl[is_sys] == 1 ? '<font color=red>系统模板</font>' : '<font color=#006acd>自定义模板</font>' ;?></td>
  21. <td><?=GetTime($tpl[last_modify])?></td>
  22. <td><a href="?part=template&template_id=<?=$tpl[template_id]?>">详情</a></td>
  23. </tr>
  24. <?php }?>
  25. <tr bgcolor="#f5fbff">
  26. <td><b>新增</b></td>
  27. <td><input name="add[template_subject]" value="" type="text" class="text"/></td>
  28. <td><input name="add[template_code]" value="" type="text" class="text"/>
  29. </td>
  30. <td>
  31. <select name="add[is_html]">
  32. <option value="1">HTML</option>
  33. <option value="0">文本</option>
  34. </select></td>
  35. <td>
  36. <select name="add[is_sys]">
  37. <!--<option value="1">系统模板</option>-->
  38. <option value="0">自定义模板</option>
  39. </select></td>
  40. <td>&nbsp;</td>
  41. <td>&nbsp;</td>
  42. </tr>
  43. </table>
  44. </div>
  45. <center><input type="submit" value="提 交" class="mymps large" name="mail_submit"/> </center>
  46. </form>
  47. <?php if($template_id){?>
  48. <br />
  49. <form method="post" action="?part=template&edit_id=<?=$edit[template_id]?>">
  50. <div id="<?=MPS_SOFTNAME?>">
  51. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  52. <input name="edit[template_id]" type="hidden" value="<?=$template_id?>" />
  53. <tr class="firstr">
  54. <td colspan="2">修改邮件模板</td>
  55. </tr>
  56. <tr bgcolor="#ffffff">
  57. <td>
  58. 模板主题
  59. </td>
  60. <td><input class="text" type="text" name="edit[template_subject]" value="<?=$edit[template_subject]?>"></td>
  61. </tr>
  62. <tr bgcolor="#ffffff">
  63. <td>
  64. 模板标识码
  65. </td>
  66. <td><input class="text" type="text" name="edit[template_code]" value="<?=$edit[template_code]?>"><br />
  67. <div style="margin-top:5px">一般情况下请保持默认勿修改此项</div>
  68. </td>
  69. </tr>
  70. <tr bgcolor="#ffffff">
  71. <td>
  72. 邮件类型
  73. </td>
  74. <td><select name="edit[is_html]">
  75. <option value="1" <?php if($edit[is_html] == '1') echo 'selected style="background-color:#6EB00C;color:white"' ;?>>HTML</option>
  76. <option value="0" <?php if($edit[is_html] == '0') echo 'selected style="background-color:#6EB00C;color:white"' ;?>>文本</option>
  77. </select>
  78. </td>
  79. </tr>
  80. <tr bgcolor="#ffffff">
  81. <td>
  82. 模板内容
  83. </td>
  84. <td><textarea name="edit[template_content]" style="width:400px; height:300px"><?=$edit[template_content]?></textarea></td>
  85. </tr>
  86. </table>
  87. </div>
  88. <center><input type="submit" value="提 交" class="mymps large" name="mail_submit"/> </center>
  89. </form>
  90. <?php }?>
  91. <?php mymps_admin_tpl_global_foot();?>