r-project-section-files.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html>
  2. <html lang=zh-cn>
  3. <head>
  4. <meta charset=utf-8>
  5. <title>纵横计量支付系统</title>
  6. <meta name=description content=计量支付>
  7. <meta name=copyright content=smartcost.com.cn>
  8. <link rel=stylesheet href={{rootUrl}}global/css/fixedheadertable.css>
  9. <link rel=stylesheet href="{{rootUrl}}global/css/bootstrap.css">
  10. <link rel=stylesheet href="{{rootUrl}}global/css/style.css">
  11. <script src="{{rootUrl}}global/js/jquery-1.9.1.min.js"></script>
  12. <script src="{{rootUrl}}global/js/bootstrap.js"></script>
  13. <script src="{{rootUrl}}global/js/jl.js"></script>
  14. <script src={{rootUrl}}global/js/jquery.fixedheadertable.js></script>
  15. </head>
  16. <body>
  17. <!-- include "top" -->
  18. <div class="wrapContent">
  19. <!-- include "left" -->
  20. <div class="mainContainer">
  21. <!--内容-->
  22. <div class="mainContent">
  23. <div class="title clearfix">
  24. <ul class="nav nav-pills">
  25. <li class="dropdown"><a title="返回" href="{{rootUrl}}rproject/{{pid}}/section"><span
  26. class="closePanel" aria-hidden="true" data-icon="Z"></span></a></li>
  27. <li class="dropdown">
  28. <a href="{{rootUrl}}sproject/{{currproArray.pid}}/section" data-toggle="dropdown"
  29. class="dropdown-toggle">
  30. {{currproArray.pname}}<b class="caret"></b>
  31. </a>
  32. <ul class="dropdown-menu">
  33. <!-- loop allproArray -->
  34. <li><a href="{{rootUrl}}sproject/{{allproArray' value.pid}}/section">{{allproArray'
  35. value.pname}}</a></li>
  36. <!-- endloop -->
  37. </ul>
  38. </li>
  39. </ul>
  40. </div>
  41. <!--导航-->
  42. <ul class="nav nav-tabs">
  43. <li>
  44. <a href="{{rootUrl}}rproject/{{pid}}/section/{{pmid}}/detail">标段概况</a>
  45. </li>
  46. <li class="active">
  47. <a href="/rproject/{{pid}}/section/{{pmid}}/files/{{mpid}}">附件</a>
  48. </li>
  49. <!-- if {{mpid}}>0 -->
  50. <li>
  51. <a href="{{rootUrl}}rproject/{{pid}}/section/{{pmid}}/report/{{mpid}}">审批</a>
  52. </li>
  53. <!-- endif -->
  54. </ul>
  55. <!--导航-->
  56. <!--文件管理-->
  57. <div class="filesWrap">
  58. <div class="filesList">
  59. <table class="table table-striped table-hover">
  60. <thead>
  61. <tr>
  62. <th width="">文件名</th>
  63. <th width="">节点</th>
  64. <th width="">上传者</th>
  65. <th width="">上传时间</th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <!-- loop itematta -->
  70. <tr>
  71. <td width=""><span class="fileico ico-{{itematta' value.fileext}}"></span><a
  72. fileext="{{itematta' value.fileext}}"
  73. iaid="{{itematta' value.iaid}}"
  74. filename="{{itematta' value.filename}}"
  75. realname="{{itematta' value.realname}}"
  76. intime="{{formatDate(itematta' value.intime,'Y-m-d')}}"
  77. tips="{{itematta' value.tips}}"
  78. href="#"
  79. numpname="第{{ToChinaseNum(itematta' value.numpname)}}期"
  80. id="fname_{{itematta' value.imnid}}">{{itematta' value.filename}}</a></td>
  81. <td>{{itematta' value.pmname}}</td>
  82. <td width="">{{itematta' value.realname}}</td>
  83. <td width="">{{formatDate(itematta' value.intime,'Y-m-d')}}</td>
  84. </tr>
  85. <!-- endloop -->
  86. </tbody>
  87. </table>
  88. </div>
  89. <div class="filesDetail">
  90. <table class="table table-striped">
  91. <thead>
  92. <tr>
  93. <th colspan="4">文件详情</th>
  94. <input type="hidden" value="" id="uuid"/>
  95. </tr>
  96. </thead>
  97. <tr>
  98. <th width="60">文件名</th>
  99. <td colspan="3"><a href="#" id="filename" target="_blank">K0+800-K1+000图纸</a><span
  100. class="fR"><button
  101. class="btn btn-mini btn-primary" id="filedown"
  102. type="button">下载</button></span></td>
  103. </tr>
  104. <tr>
  105. <th width="60">格式</th>
  106. <td id="fileext"><span class="fileico ico-jpg"></span>.jpg</td>
  107. <th width="60">所在类</th>
  108. <td>台帐附件</td>
  109. </tr>
  110. <tr>
  111. <th width="60">上传者</th>
  112. <td id="realname">陈工</td>
  113. <th width="60">上传时间</th>
  114. <td id="intime">2014-11-20 14:20</td>
  115. </tr>
  116. <tr>
  117. <th width="60">备注/描述</th>
  118. <td id="tips" colspan="3">内容内容内容内容</td>
  119. </tr>
  120. </table>
  121. </div>
  122. </div>
  123. <!--文件管理-->
  124. </div>
  125. <!--内容-->
  126. </div>
  127. </div>
  128. <script type="text/javascript">autoFlashHeight();</script>
  129. <script type="text/javascript">
  130. $(document).ready(function () {
  131. $("a[id^='fname_']").click(function () {
  132. var fileext = $(this).attr('fileext');
  133. var filename = $(this).attr('filename');
  134. var realname = $(this).attr('realname');
  135. var intime = $(this).attr('intime');
  136. var tips = $(this).attr('tips');
  137. var numpname = $(this).attr('numpname');
  138. var iaid = $(this).attr('iaid');
  139. $("#filename").html(filename);
  140. $("#fileico").html(fileext);
  141. $("#realname").html(realname);
  142. $("#intime").html(intime);
  143. $("#tips").html(tips);
  144. $("#numpname").html(numpname);
  145. $("#fileext").html(fileext);
  146. $("#uuid").val(iaid);
  147. });
  148. $("#filedown").click(function () {
  149. var uuid = $("#uuid").val();
  150. location.href = "{{rootUrl}}rproject/section/get/" + uuid + "/attachment";
  151. });
  152. });
  153. </script>
  154. </body>