log.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.appearance}}:</td>
  18. <td class="editTableValue"><select class="MWFDivTemplate" name="templateType"></select></td>
  19. </tr>
  20. <!-- <tr>-->
  21. <!-- <td class="editTableTitle">Class:</td>-->
  22. <!-- <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>-->
  23. <!-- </tr>-->
  24. <tr>
  25. <td class="editTableTitle">{{$.lp.record}}:</td>
  26. <td class="editTableValue">
  27. <input class="editTableRadio" name="logType" text{($.logType!=='worklog')?'checked':''} type="radio" value="record" onclick="if (this.checked){
  28. $('text{$.pid}unitLevelNameArea').setStyle('display', '');
  29. }"/>record
  30. <input class="editTableRadio" name="logType" text{($.logType=='worklog')?'checked':''} type="radio" value="worklog" onclick="if (this.checked){
  31. $('text{$.pid}unitLevelNameArea').setStyle('display', 'none');
  32. }"/>worklog
  33. </td>
  34. </tr>
  35. </table>
  36. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  37. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  38. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  39. <tr>
  40. <td class="editTableTitle">{{$.lp.style}}:</td>
  41. <td class="editTableValue">
  42. <input class="editTableRadio" onclick="if (this.checked){
  43. $('text{$.pid}labelTextStyleValue').setStyle('display', 'block');
  44. $('text{$.pid}handwritingSize').setStyle('display', '');
  45. }" name="mode" text{($.mode=='default')?'checked':''} type="radio" value="default"/>{{$.lp.default}}
  46. <input class="editTableRadio" onclick="if (this.checked){
  47. $('text{$.pid}labelTextStyleValue').setStyle('display', 'block');
  48. $('text{$.pid}handwritingSize').setStyle('display', 'none');
  49. }" name="mode" text{($.mode=='text')?'checked':''} type="radio" value="text"/>{{$.lp.text}}
  50. <input class="editTableRadio" onclick="if (this.checked){
  51. $('text{$.pid}labelTextStyleValue').setStyle('display', 'none');
  52. $('text{$.pid}handwritingSize').setStyle('display', '');
  53. }" name="mode" text{($.mode=='table')?'checked':''} type="radio" value="table"/>{{$.lp.recordTable}}<br>
  54. <input class="editTableRadio" onclick="if (this.checked){
  55. $('text{$.pid}labelTextStyleValue').setStyle('display', 'none');
  56. $('text{$.pid}handwritingSize').setStyle('display', '');
  57. }" name="mode" text{($.mode=='media')?'checked':''} type="radio" value="media"/>{{$.lp.recordMedia}}
  58. </td>
  59. </tr>
  60. </table>
  61. <table id="text{$.pid}handwritingSize" style=""
  62. width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  63. <tr>
  64. <td class="editTableValue"><b>{{$.lp.expandHandwritten}}:</b>
  65. <input class="editTableRadio" name="handwritingExpanded" text{($.handwritingExpanded)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  66. <input class="editTableRadio" name="handwritingExpanded" text{(!$.handwritingExpanded)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="editTableValue"><b>{{$.lp.handwrittenWidth}}:</b>
  71. <input type="text" name="handwritingWidth" value="text{$.handwritingWidth}" class="editTableInputNoWidth" style="width: 50px;;margin-right:5px;" />px
  72. <span>&nbsp;&nbsp;&nbsp;&nbsp;{{$.lp.validOnPcSide}}</span>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td class="editTableValue"><b>{{$.lp.handwrittenHeight}}:</b>
  77. <input type="text" name="handwritingHeight" value="text{$.handwritingHeight}" class="editTableInputNoWidth" style="width: 50px;;margin-right:5px;" />px
  78. <span>&nbsp;&nbsp;&nbsp;&nbsp;{{$.lp.validOnPcSide}}</span>
  79. </td>
  80. </tr>
  81. </table>
  82. <div id="text{$.pid}labelTextStyleValue" title="{{$.lp.logFormat}}" style="display: text{( !$.mode || ($.mode=='text') || ($.mode=='default')) ?'block':'none'}">
  83. <!-- <div style="text-align:center; line-height:20px; height: 20px; background: #f0f0f0; border-top: 1px solid #cccccc">{{$.lp.logFormat}}</div>-->
  84. <!-- <textarea name="textStyle" class="editTableTextarea">text{$.textStyle}</textarea>-->
  85. <div class="MWFHtmlEditorArea" name="textStyle" title="{{$.lp.logFormat}} (H)"></div>
  86. <div class="MWFScriptArea" name="textStyleScript" title="{{$.lp.logFormatScript}} (S)" collapse="true"></div>
  87. <div class="MWFHtmlEditorArea" name="textTaskStyle" title="{{$.lp.logTaskFormat}} (H)"></div>
  88. </div>
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableTitle">{{$.lp.currentPerson}}:</td>
  92. <td class="editTableValue">
  93. <input class="editTableRadio" name="isTask" text{($.isTask)?'checked':''} type="radio" value="true"/>{{$.lp.show}}
  94. <input class="editTableRadio" name="isTask" text{(!$.isTask)?'checked':''} type="radio" value="false"/>{{$.lp.hide}}
  95. </td>
  96. </tr>
  97. </table>
  98. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  99. <tr>
  100. <td class="editTableTitle">{{$.lp.readReaded}}:</td>
  101. <td class="editTableValue">
  102. <input class="editTableRadio" name="isShowRead" text{($.isShowRead!==false)?'checked':''} type="radio" value="true"/>{{$.lp.show}}
  103. <input class="editTableRadio" name="isShowRead" text{($.isShowRead===false)?'checked':''} type="radio" value="false"/>{{$.lp.hide}}
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="editTableTitle">{{$.lp.readTitle}}:</td>
  108. <td class="editTableValue"><input type="text" name="showReadTitle" value="text{$.showReadTitle}" class="editTableInput"/></td>
  109. </tr>
  110. <tr>
  111. <td class="editTableTitle">{{$.lp.readedTitle}}:</td>
  112. <td class="editTableValue"><input type="text" name="showReadCompletedTitle" value="text{$.showReadCompletedTitle}" class="editTableInput"/></td>
  113. </tr>
  114. </table>
  115. </div>
  116. <div title="{{$.lp.filter}}" class="MWFTab">
  117. <div style="background-color:#EEE;">
  118. <div style="float:right;line-height:24px;height:24px;width: 80px;">
  119. <input type="checkbox" name="filterActivityExactMatch" value="yes"
  120. text{($.filterActivityExactMatch && $.filterActivityExactMatch.indexOf('yes')!=-1)?'checked':''}>{{$.lp.exactMatch}}
  121. </div>
  122. <div style="height:24px; line-height:24px; padding-left:10px; margin-right: 80px;">{{$.lp.filterActivity}}</div>
  123. </div>
  124. <div><textarea style="height:40px; width:98%; border:1px solid #DDD;" name="filterActivity">text{$.filterActivity}</textarea></div>
  125. <div style="background-color:#EEE;">
  126. <div style="float:right;line-height:24px;height:24px;width: 80px;">
  127. <input type="checkbox" name="filterActivityAliasExactMatch" value="yes"
  128. text{($.filterActivityAliasExactMatch && $.filterActivityAliasExactMatch.indexOf('yes')!=-1)?'checked':''}>{{$.lp.exactMatch}}
  129. </div>
  130. <div style="height:24px; line-height:24px; padding-left:10px; margin-right: 80px;">{{$.lp.filterActivityAlias}}</div>
  131. </div>
  132. <div><textarea style="height:40px; width:98%; border:1px solid #DDD;" name="filterActivityAlias">text{$.filterActivityAlias}</textarea></div>
  133. <div style="background-color:#EEE;">
  134. <div style="float:right;line-height:24px;height:24px;width: 80px;">
  135. <input type="checkbox" name="filterPersonExactMatch" value="yes"
  136. text{($.filterPersonExactMatch && $.filterPersonExactMatch.indexOf('yes')!=-1)?'checked':''}>{{$.lp.exactMatch}}
  137. </div>
  138. <div style="height:24px; line-height:24px; padding-left:10px; margin-right: 80px;">{{$.lp.filterPerson}}</div>
  139. </div>
  140. <div><textarea style="height: 40px; width:98%; border:1px solid #DDD;" name="filterPerson">text{$.filterPerson}</textarea></div>
  141. <div style="background-color:#EEE;">
  142. <div style="float:right;line-height:24px;height:24px;width: 80px;">
  143. <input type="checkbox" name="filterRouteExactMatch" value="yes"
  144. text{($.filterRouteExactMatch && $.filterRouteExactMatch.indexOf('yes')!=-1)?'checked':''}>{{$.lp.exactMatch}}
  145. </div>
  146. <div style="height:24px; line-height:24px; padding-left:10px; margin-right: 80px;">{{$.lp.filterRoute}}</div>
  147. </div>
  148. <div><textarea style="height: 40px; width:98%; border:1px solid #DDD;" name="filterRoute">text{$.filterRoute}</textarea></div>
  149. <div><div id="labelEditScriptValue" class="MWFScriptArea" name="filterScript" title="{{$.lp.filterScript}} (S)"></div></div>
  150. </div>
  151. <div title="{{$.lp.category}}" class="MWFTab">
  152. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  153. <tr>
  154. <td class="editTableTitle">{{$.lp.category}}:</td>
  155. <td class="editTableValue">
  156. <input class="editTableRadio" name="category" text{(!$.category || $.category=='none')?'checked':''} type="radio" value="none" onclick="if (this.checked){
  157. $('text{$.pid}tableStyleArea').setStyle('display', 'none');
  158. $('text{$.pid}expandArea').setStyle('display', 'none');
  159. $('text{$.pid}sortInCategory').setStyle('display', 'none');
  160. $('text{$.pid}categoryByUnitLevelName').setStyle('display', 'none');
  161. }" />{{$.lp.none}}
  162. <input class="editTableRadio" name="category" text{( $.category=='activity')?'checked':''} type="radio" value="activity" onclick="if (this.checked){
  163. $('text{$.pid}tableStyleArea').setStyle('display', 'block');
  164. $('text{$.pid}expandArea').setStyle('display', 'block');
  165. $('text{$.pid}sortInCategory').setStyle('display', 'block');
  166. $('text{$.pid}categoryByUnitLevelName').setStyle('display', 'none');
  167. }"/>{{$.lp.activity}}
  168. <input class="editTableRadio" name="category" text{( $.category=='activityGroup')?'checked':''} type="radio" value="activityGroup" onclick="if (this.checked){
  169. $('text{$.pid}tableStyleArea').setStyle('display', 'block');
  170. $('text{$.pid}expandArea').setStyle('display', 'block');
  171. $('text{$.pid}sortInCategory').setStyle('display', 'block');
  172. $('text{$.pid}categoryByUnitLevelName').setStyle('display', 'none');
  173. }"/>{{$.lp.opinionGroup}}
  174. <input class="editTableRadio" name="category" text{( $.category=='unit')?'checked':''} type="radio" value="unit" onclick="if (this.checked){
  175. $('text{$.pid}tableStyleArea').setStyle('display', 'block');
  176. $('text{$.pid}expandArea').setStyle('display', 'block');
  177. $('text{$.pid}sortInCategory').setStyle('display', 'block');
  178. $('text{$.pid}categoryByUnitLevelName').setStyle('display', 'none');
  179. }"/>{{$.lp.unit}}
  180. <span id="text{$.pid}unitLevelNameArea" style="display: text{($.logType!=='worklog') ?'':'none'}">
  181. <input class="editTableRadio" name="category" text{( $.category=='unitLevelName')?'checked':''} type="radio" value="unitLevelName" onclick="if (this.checked){
  182. $('text{$.pid}tableStyleArea').setStyle('display', 'block');
  183. $('text{$.pid}expandArea').setStyle('display', 'block');
  184. $('text{$.pid}sortInCategory').setStyle('display', 'block');
  185. $('text{$.pid}categoryByUnitLevelName').setStyle('display', 'block');
  186. }"/>{{$.lp.unitLevelName}}
  187. </span>
  188. </td>
  189. </tr>
  190. </table>
  191. <div id="text{$.pid}categoryByUnitLevelName" style="display: text{($.logType!=='worklog' && $.category=='unitLevelName') ?'block':'none'}">
  192. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  193. <tr>
  194. <td class="editTableTitle">{{$.lp.unitLevel}}:</td>
  195. <td class="editTableValue">
  196. <select name="unitLevel">
  197. <option text{($.unitLevel=='1' || !$.unitLevel )?'selected':''} value="1">1</option>
  198. <option text{($.unitLevel=='2')?'selected':''} value="2">2</option>
  199. <option text{($.unitLevel=='3')?'selected':''} value="3">3</option>
  200. <option text{($.unitLevel=='4')?'selected':''} value="4">4</option>
  201. <option text{($.unitLevel=='5')?'selected':''} value="5">5</option>
  202. <option text{($.unitLevel=='6')?'selected':''} value="6">6</option>
  203. <option text{($.unitLevel=='7')?'selected':''} value="7">7</option>
  204. <option text{($.unitLevel=='8')?'selected':''} value="8">8</option>
  205. <option text{($.unitLevel=='9')?'selected':''} value="9">9</option>
  206. <option text{($.unitLevel=='10')?'selected':''} value="10">10</option>
  207. </select>
  208. </td>
  209. </tr>
  210. </table>
  211. </div>
  212. <div id="text{$.pid}sortInCategory" title="分类内排序" style="display: text{($.category && $.category!='none') ?'block':'none'}">
  213. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  214. <tr>
  215. <td class="editTableTitle">{{$.lp.sortInCategory}}:</td>
  216. <td class="editTableValue">
  217. <input class="editTableRadio" name="sortTypeInCategory" text{(!$.sortTypeInCategory || $.sortTypeInCategory=='default')?'checked':''} type="radio" value="default" onclick="if (this.checked){
  218. //$('text{$.pid}sortInCategoryScript').setStyle('display', 'none');
  219. }" />{{$.lp.sortByActivity}}
  220. <input class="editTableRadio" name="sortTypeInCategory" text{( $.sortTypeInCategory && $.sortTypeInCategory=='completedTimeAsc')?'checked':'' } type="radio" value="completedTimeAsc" onclick="if (this.checked){
  221. //$('text{$.pid}sortInCategoryScript').setStyle('display', 'none');
  222. }" />{{$.lp.sortByTimeAsc}}
  223. <input class="editTableRadio" name="sortTypeInCategory" text{( $.sortTypeInCategory && $.sortTypeInCategory=='completedTimeDesc')?'checked':''} type="radio" value="completedTimeDesc" onclick="if (this.checked){
  224. //$('text{$.pid}sortInCategoryScript').setStyle('display', 'none');
  225. }"/>{{$.lp.sortByTimeDesc}}
  226. <input class="editTableRadio" name="sortTypeInCategory" text{( $.sortTypeInCategory && $.sortTypeInCategory=='none')?'checked':''} type="radio" value="none" onclick="if (this.checked){
  227. //$('text{$.pid}sortInCategoryScript').setStyle('display', 'none');
  228. }"/>{{$.lp.noSort}}
  229. <!--<input class="editTableRadio" name="sortTypeInCategory" text{( $.sortTypeInCategory=='script')?'checked':''} type="radio" value="script" onclick="if (this.checked){-->
  230. <!--$('text{$.pid}sortInCategoryScript').setStyle('display', 'block');-->
  231. <!--}"/>脚本-->
  232. </td>
  233. </tr>
  234. </table>
  235. <!--<div class="MWFScriptArea" name="sortInCategoryScript" title="分类内排序脚本(S)" collapse="true" style="display: text{($.sortTypeInCategory && $.sortTypeInCategory=='script') ?'block':'none'}"></div>-->
  236. </div>
  237. <div title="{{$.lp.categoryTable}}" id="text{$.pid}tableStyleArea" style="display: text{($.category && $.category!=='none') ?'block':'none'}">
  238. <div class="MWFMaplist" name="tableProperties" collapse="true" title="{{$.lp.categoryTableAttr}}"></div>
  239. <div class="MWFMaplist" name="tableStyles" collapse="true" title="{{$.lp.categoryTableStyle}}"></div>
  240. <div class="MWFMaplist" name="titleTdStyles" collapse="true" title="{{$.lp.categoryTitleCellStyle}}"></div>
  241. <div class="MWFMaplist" name="contentTdStyles" collapse="true" title="{{$.lp.categoryContentCellStyle}}"></div>
  242. <div class="MWFMaplist" name="contentDivStyles" collapse="true" title="{{$.lp.categoryContentCellInnerStyle}}"></div>
  243. </div>
  244. <div title="{{$.lp.expandOrCollapse}}" id="text{$.pid}expandArea" style="display: text{($.category && $.category!=='none') ?'block':'none'}">
  245. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  246. <tr>
  247. <td class="editTableTitle">{{$.lp.expandOrCollapse}}:</td>
  248. <td class="editTableValue">
  249. <input class="editTableRadio" name="expand" text{(!$.expand || $.expand=='disable')?'checked':''} type="radio" value="disable" onclick="if (this.checked){
  250. $('text{$.pid}expandStyleArea').setStyle('display', 'none');
  251. }" />{{$.lp.disabled}}
  252. <input class="editTableRadio" name="expand" text{( $.expand=='enable')?'checked':''} type="radio" value="enable" onclick="if (this.checked){
  253. $('text{$.pid}expandStyleArea').setStyle('display', 'block');
  254. }"/>{{$.lp.enabled}}
  255. </td>
  256. </tr>
  257. </table>
  258. <div title="{{$.lp.defaultExpandCount}}" id="text{$.pid}expandStyleArea" style="display: text{($.expand && $.expand=='enable') ?'block':'none'}">
  259. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  260. <tr>
  261. <td class="editTableTitle">{{$.lp.defaultExpandCount}}:</td>
  262. <td class="editTableValue"><input type="text" name="expandCount" value="text{$.expandCount}" class="editTableInput"/></td>
  263. </td>
  264. </tr>
  265. <tr>
  266. <td class="editTableTitle">{{$.lp.expandHtml}}:</td>
  267. <td class="editTableValue"><textarea name="expandHTML" class="editTableTextarea">text{$.expandHTML}</textarea></td>
  268. </tr>
  269. <tr>
  270. <td class="editTableTitle">{{$.lp.collapseHtml}}:</td>
  271. <td class="editTableValue"><textarea name="collapseHTML" class="editTableTextarea">text{$.collapseHTML}</textarea></td>
  272. </tr>
  273. </table>
  274. </div>
  275. </div>
  276. </div>
  277. <div title="{{$.lp.event}}" class="MWFTab">
  278. <div class="MWFEventsArea" name="events"></div>
  279. </div>
  280. <div title="HTML" class="MWFTab">
  281. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  282. </div>
  283. <div title="JSON" class="MWFTab">
  284. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  285. </div>
  286. </div>