focus_add.tpl.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php include mymps_tpl('inc_head');?>
  2. <script language='javascript'>
  3. function CheckSubmit()
  4. {
  5. if(document.form1.focusorder.value==""){
  6. alert("幻灯片顺序不能为空!");
  7. document.form1.focusorder.focus();
  8. return false;
  9. }
  10. if(document.form1.words.value==""){
  11. alert("图片说明不能为空!");
  12. document.form1.words.focus();
  13. return false;
  14. }
  15. if(document.form1.url.value==""){
  16. alert("跳转网址不能为空!");
  17. document.form1.url.focus();
  18. return false;
  19. }
  20. if(document.form1.mymps_focus.value==""){
  21. alert("请上传图片!");
  22. document.form1.mymps_focus.focus();
  23. return false;
  24. }
  25. return true;
  26. }
  27. </script>
  28. <script language="javascript" src="js/vbm.js"></script>
  29. <form method="post" name="form1" action="?part=add" enctype="multipart/form-data" onSubmit="return CheckSubmit();">
  30. <div id="<?=MPS_SOFTNAME?>">
  31. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="vbm">
  32. <tbody>
  33. <tr bgcolor="#f5fbff" >
  34. <td width="15%" align="right" valign="top">选择位置:</td>
  35. <td>
  36. <select name="typename">
  37. <option value="网站首页">网站首页</option>
  38. <option value="新闻首页">新闻首页</option>
  39. </select>
  40. </td>
  41. </tr>
  42. <tr bgcolor="#f5fbff" >
  43. <td width="15%" align="right" valign="top">图片顺序:</td>
  44. <td>
  45. <input name=focusorder type=text class="text" value="<?=$maxorder?>"/>
  46. </td>
  47. </tr>
  48. <tr bgcolor="#f5fbff" >
  49. <td width="15%" align="right" valign="top">图片说明:</td>
  50. <td>
  51. <input name=words type=text class="text" />
  52. </td>
  53. </tr>
  54. <tr bgcolor="#f5fbff" >
  55. <td width="15%" align="right" valign="top">跳转网址:</td>
  56. <td>
  57. <input name=url type=text class="text" value="http://"/>
  58. </td>
  59. </tr>
  60. <tr bgcolor="#f5fbff" >
  61. <td align="right" valign="top">选择上传的图片:</td>
  62. <td><input type="file" name="mymps_focus" size="45" id="litpic"><br /><br />
  63. 支持上传的类型:<?=$mymps_global[cfg_upimg_type]?><br />
  64. 网站首页幻灯片尺寸:<?=$mymps_mymps[cfg_focus_limit][$tpl_index[banmian]][index][width]?> * <?=$mymps_mymps[cfg_focus_limit][$tpl_index[banmian]][index][height]?><br />
  65. 新闻首页幻灯片尺寸:<?=$mymps_mymps[cfg_focus_limit][news][width]?> * <?=$mymps_mymps[cfg_focus_limit][news][height]?><br />
  66. </td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. </div>
  71. <center><input class="mymps large" type="submit" value="上 传" name="focus_submit"></center>
  72. </form>
  73. <?php mymps_admin_tpl_global_foot();?>