document.tpl.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. include mymps_tpl('inc_header');
  3. echo '<link rel="Stylesheet" type="text/css" href="template/css/new.dialog.css" />
  4. <link rel="stylesheet" type="text/css" href="template/css/new.my.css" />
  5. <script language="javascript" src="template/javascript.js"></script>
  6. </head>
  7. <body class="';
  8. echo $mymps_global['cfg_tpl_dir'];
  9. echo '">
  10. <div class="container">
  11. ';
  12. include mymps_tpl('inc_head');
  13. echo '<div id="main" class="main section-setting">
  14. <div class="clearfix main-inner">
  15. <div class="content">
  16. <div class="clearfix content-inner">
  17. <div class="content-main">
  18. <div class="content-main-inner">
  19. <div class="pwrap setting-userinfo">
  20. <div class="phead"><div class="phead-inner"><div class="phead-inner">
  21. <h3 class="ptitle"><span>';
  22. echo ($ac == 'edit' ? '修改' : '发布') . $documenttype[$tid]['typename'];
  23. echo '</span></h3>
  24. <p class="pextra"><a href="index.php?m=document&tid=';
  25. echo $tid;
  26. echo '&type=corp"><span>&laquo; 返回';
  27. echo $documenttype[$tid]['typename'];
  28. echo '</span></a></p>
  29. </div></div></div>
  30. <div class="pbody">
  31. <div id="msg_success"></div>
  32. <div id="msg_error"></div>
  33. <div id="msg_alert"></div>
  34. <form action="index.php?m=document&ac=';
  35. echo $ac;
  36. echo '" enctype="multipart/form-data" method="post" name="form1">
  37. ';
  38. if ($ac == 'edit') {
  39. echo ' <input name="id" value="';
  40. echo $id;
  41. echo '" type="hidden">
  42. ';
  43. }
  44. echo ' <input name="tid" value="';
  45. echo $tid;
  46. echo '" type="hidden">
  47. <div class="formgroup cleafix">
  48. <div class="formrow">
  49. <h3 class="label"><label>标题</label></h3>
  50. <div class="form-enter">
  51. <input name="title" type="text" class="text" value="';
  52. echo $edit['title'];
  53. echo '" style="width:300px">
  54. </div>
  55. </div>
  56. <div class="formrow">
  57. <h3 class="label">作者</h3>
  58. <div class="form-enter">
  59. <input name="author" type="text" class="text" value="';
  60. echo $edit['author'] ? $edit['author'] : $row[tname];
  61. echo '" style="width:300px">
  62. </div>
  63. </div>
  64. <div class="formrow">
  65. <h3 class="label">来源</h3>
  66. <div class="form-enter">
  67. <input name="source" type="text" class="text" value="';
  68. echo $edit['source'] ? $edit['source'] : $row[tname];
  69. echo '" style="width:300px">
  70. </div>
  71. </div>
  72. ';
  73. if ($documenttype[$tid]['arrid'] == '2') {
  74. echo ' <div class="formrow">
  75. <h3 class="label">相关图片</h3>
  76. <div class="form-enter">
  77. <input type="file" name="docu_image" size="30" id="litpic">
  78. </div>
  79. </div>
  80. ';
  81. if ($edit[imgpath] != '') {
  82. echo ' <div class="formrow">
  83. <h3 class="label">原来的图片</h3>
  84. <div class="form-enter">
  85. ';
  86. echo '<img src=' . $mymps_global[SiteUrl] . '' . $edit[pre_imgpath] . ' style=\'_margin-top:expression(( 180 - this.height ) / 2);\' />
  87. ';
  88. echo ' </div>
  89. </div>
  90. ';
  91. }
  92. }
  93. echo '
  94. <div class="formrow">
  95. <h3 class="label">详细内容</h3>
  96. ';
  97. echo $acontent;
  98. echo ' </div>
  99. <div class="formrow formrow-action">
  100. <span class="minbtn-wrap"><span class="btn"><input type="submit" value="提交保存" class="button" name="document_submit" /></span></span>
  101. </div>
  102. </div>
  103. </form>
  104. </div>
  105. <div class="pfoot"><p><b>-</b></p></div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. ';
  112. include mymps_tpl('inc_sidebar');
  113. echo ' </div>
  114. </div>
  115. ';
  116. include mymps_tpl('inc_foot');
  117. echo '</div>
  118. </body>
  119. </html>';
  120. ?>