- Timestamp:
- 15.12.2011 22:15:32 (5 months ago)
- Location:
- ZMS/trunk
- Files:
-
- 3 deleted
- 6 edited
-
dtml/ZMSContainerObject/manage_main_change.dtml (modified) (1 diff)
-
dtml/objattrs/f_select_align.dtml (modified) (3 diffs)
-
dtml/object/manage_page_request.dtml (modified) (1 diff)
-
dtml/versionmanager/version_object_state.dtml (modified) (4 diffs)
-
plugins/www/manage_page_style-min.css (modified) (1 diff)
-
plugins/www/manage_page_style.css (modified) (1 diff)
-
www/icon_align_center_on.gif (deleted)
-
www/icon_align_left_on.gif (deleted)
-
www/icon_align_right_on.gif (deleted)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/dtml/ZMSContainerObject/manage_main_change.dtml
r1225 r1773 3 3 4 4 <dtml-comment>##### Author & Date #############################</dtml-comment> 5 <dtml-let info="[]" >6 <dtml-if "getObjProperty('change_uid',REQUEST)">7 <dtml-call "info.append(string_maxlen( getObjProperty('change_uid',REQUEST),15)+'\n')">5 <dtml-let info="[]" change_uid="attr('change_uid')" change_dt="attr('change_dt')"> 6 <dtml-if change_uid> 7 <dtml-call "info.append(string_maxlen(change_uid,15)+'\n')"> 8 8 </dtml-if> 9 <dtml-if "getObjProperty('change_dt',REQUEST)"> 10 <dtml-call "info.append(getLangFmtDate(getObjProperty('change_dt',REQUEST),manage_lang,'SHORTDATETIME_FMT')+'\n')"> 9 <dtml-if change_dt> 10 <dtml-if "daysBetween(change_dt,ZopeTime())>getConfProperty('ZMS.shortDateFormat.daysBetween',5)"> 11 <dtml-call "info.append('<span title=\042'+getLangFmtDate(change_dt,manage_lang,'SHORTDATETIME_FMT')+'\042>'+getLangFmtDate(change_dt,manage_lang,'SHORTDATE_FMT')+'</span>\n')"> 12 <dtml-else> 13 <dtml-call "info.append(getLangFmtDate(change_dt,manage_lang,'SHORTDATETIME_FMT')+'\n')"> 14 </dtml-if> 11 15 </dtml-if> 12 16 <dtml-if lenChildNodes> 13 17 <dtml-call "info.append('%i %s\n'%(lenChildNodes,getZMILangStr('ATTR_OBJECTS')))"> 14 18 </dtml-if> 15 <dtml-comment>16 <dtml-if "isPage()">17 <dtml-call "info.append('%i %s\n'%(len(getChildNodes(REQUEST)),getZMILangStr('ATTR_OBJECTS')))">18 <dtml-else>19 <dtml-call "info.append(getDataSizeStr(get_size(REQUEST))+'\n')">20 </dtml-if>21 </dtml-comment>22 19 <div class="form-small"><dtml-var "''.join(info)" newline_to_br></div> 23 20 </dtml-let> -
ZMS/trunk/dtml/objattrs/f_select_align.dtml
r750 r1773 1 1 <script language="javascript"> 2 <!--//3 2 4 function switchAlignBtns( fmName) { 5 var fm = document.forms[ fmName]; 6 for (i=0; i<document.images.length; i++) { 7 sName = document.images[i].name; 8 iAlignBtn = sName.indexOf("AlignBtn") 9 if (iAlignBtn > 0) { 10 align= sName.substring(0,iAlignBtn).toLowerCase(); 11 if (fm.textalign.value.toLowerCase()!=align) 12 document.images[i].src = '<dtml-var MISC_ZMS>icon_align_' + align.toLowerCase() + '.gif'; 13 else 14 document.images[i].src = '<dtml-var MISC_ZMS>icon_align_' + align.toLowerCase() + '_on.gif'; 15 } 16 } 17 } 3 function alignBtnClick( sender, align) { 4 var fm = $($(sender).parents("form")[0]); 5 $("input[name=textalign]").val(align.toUpperCase()); 6 $("img[name$=AlignBtn].button1") 7 .removeClass("button1") 8 .addClass("button0"); 9 $("img[name="+align.toLowerCase()+"AlignBtn]") 10 .removeClass("button0") 11 .addClass("button1"); 12 } 18 13 19 function alignBtnClick( fmName, align) {20 var fm = document.forms[ fmName];21 fm.textalign.value = align.toUpperCase();22 switchAlignBtns( fmName);23 }24 25 //-->26 14 </script> 27 15 … … 32 20 <dtml-in "['left','right','center']"> 33 21 <td valign="middle" 34 ><a href="javascript:alignBtnClick( '<dtml-var fmName>','<dtml-var sequence-item>')" class="button"22 ><a href="javascript:alignBtnClick(this,'<dtml-var sequence-item>')" class="button" 35 23 ><img name="<dtml-var sequence-item>AlignBtn" border="0" align="absmiddle" 36 <dtml-if "_.has_key('textalign') and _['textalign'].lower()==_['sequence-item'].lower()"> 37 src="<dtml-var MISC_ZMS>icon_align_<dtml-var sequence-item>_on.gif" 38 <dtml-else> 39 src="<dtml-var MISC_ZMS>icon_align_<dtml-var sequence-item>.gif" 40 </dtml-if> 24 class="button<dtml-var "_.int(_.has_key('textalign') and _['textalign'].lower()==_['sequence-item'].lower())">" 25 src="<dtml-var MISC_ZMS>icon_align_<dtml-var sequence-item>.gif" 41 26 title="<dtml-var "getZMILangStr('ALIGN%i'%(_['sequence-index']+1))">" 42 27 ></a … … 44 29 </dtml-in> 45 30 <dtml-else> 46 <td valign="middle"><img border="0" src="<dtml-var MISC_ZMS>icon_align_<dtml-var "textalign.lower()">_on.gif"></td>31 <td valign="middle"><img border="0" class="button1" src="<dtml-var MISC_ZMS>icon_align_<dtml-var "textalign.lower()">.gif"></td> 47 32 </dtml-if> 48 33 <td> </td> -
ZMS/trunk/dtml/object/manage_page_request.dtml
r1756 r1773 3 3 ><dtml-call "RESPONSE.setHeader('Pragma', 'no-cache')" 4 4 5 ><dtml-call "REQUEST.set( 'preview','preview')" 5 6 ><dtml-call "REQUEST.set('ZMI_TIME',ZopeTime().timeTime())" 6 7 ><dtml-call "REQUEST.set('ZMS_CHARSET',REQUEST.get('ZMS_CHARSET','utf-8'))" -
ZMS/trunk/dtml/versionmanager/version_object_state.dtml
r1321 r1773 16 16 </dtml-comment> 17 17 <dtml-if "len(getLangIds())>1"> 18 <dtml-if " getObjProperty('change_uid',REQUEST)">18 <dtml-if "attr('change_uid')"> 19 19 <dtml-let coverage="getDCCoverage(REQUEST)" 20 20 seq_lang="coverage[coverage.find('.')+1:]" … … 52 52 <dtml-unless "getAutocommit()"> 53 53 <dtml-unless ZMS_VERSION> 54 <dtml-let wfStates="getWfStates(REQUEST)" 55 ><dtml-if "getObjProperty('work_uid',REQUEST)"56 ><dtml-if "getObjProperty('work_dt',REQUEST)"54 <dtml-let wfStates="getWfStates(REQUEST)" work_uid="attr('work_uid')" work_dt="attr('work_dt')" 55 ><dtml-if work_uid 56 ><dtml-if work_dt 57 57 ><dtml-in wfStates 58 58 ><dtml-let wfState=sequence-item itm="getWfActivity(wfState)" 59 59 ><dtml-if "itm.get('icon')"> 60 <img src="<dtml-var "itm['icon']">" title="<dtml-var "itm['name']"> <dtml-var "getZMILangStr('BY')"> <dtml-var "getObjProperty('work_uid',REQUEST)"> (<dtml-var "getLangFmtDate(getObjProperty('work_dt',REQUEST))">)" border="0" align="absmiddle" />60 <img src="<dtml-var "itm['icon']">" title="<dtml-var "itm['name']"> <dtml-var "getZMILangStr('BY')"> <dtml-var work_uid> (<dtml-var "getLangFmtDate(work_dt)">)" border="0" align="absmiddle" /> 61 61 </dtml-if 62 62 ></dtml-let … … 89 89 <dtml-if "getHistory()"> 90 90 <dtml-if "REQUEST.form.has_key('ZMS_VERSION_%s'%id)"><b><i></dtml-if> 91 v.<dtml-var " getObjProperty('master_version',REQUEST)">.<dtml-var "getObjProperty('major_version',REQUEST)">.<dtml-var "getObjProperty('minor_version',REQUEST)"><dtml-if "REQUEST.get('ZMS_VERSION_%s'%id,'').find(str(version_live_id))>=0"> - <dtml-var "getZMILangStr('TAB_LIVE')"><dtml-elif "REQUEST.get('ZMS_VERSION_%s'%id,'').find(str(version_work_id))>=0"> - <dtml-var "getZMILangStr('TAB_PREVIEW')"></dtml-if>91 v.<dtml-var "attr('master_version')">.<dtml-var "attr('major_version')">.<dtml-var "attr('minor_version')"><dtml-if "REQUEST.get('ZMS_VERSION_%s'%id,'').find(str(version_live_id))>=0"> - <dtml-var "getZMILangStr('TAB_LIVE')"><dtml-elif "REQUEST.get('ZMS_VERSION_%s'%id,'').find(str(version_work_id))>=0"> - <dtml-var "getZMILangStr('TAB_PREVIEW')"></dtml-if> 92 92 <dtml-if "REQUEST.form.has_key('ZMS_VERSION_%s'%id)"></i></b></dtml-if> 93 93 </dtml-if> … … 98 98 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- 99 99 </dtml-comment> 100 <dtml-var " getObjProperty('version_object_state',REQUEST)">100 <dtml-var "attr('version_object_state')"> 101 101 <dtml-try><dtml-var my_version_object_state><dtml-except></dtml-try> -
ZMS/trunk/plugins/www/manage_page_style-min.css
r1751 r1773 72 72 img.hbutton,a.hbutton img{width:20px;height:8px} 73 73 a.button img{padding:2px;border:none} 74 img.button,a.button:link img,a.button:visited img,img.vbutton,a.vbutton:link img,a.vbutton:visited img,img.hbutton,a.hbutton:link img,a.hbutton:visited img{border-top:solid 1px #E6E4E6;border-left:solid 1px #E6E4E6;border-right:solid 1px #B6B4B6;border-bottom:solid 1px #B6B4B6}75 a.button:hover img,a.button:active img,a.vbutton:hover img,a.vbutton:active img,a.hbutton:hover img,a.hbutton:active img{background-color:#E8E8E8;border-top:solid 1px #FFF;border-left:solid 1px #FFF;border-right:solid 1px #000;border-bottom:solid 1px #000}76 img.button 0,a.button:link img.button0,a.button:visited img.button0{border-top:solid 1px #E6E4E6;border-left:solid 1px #E6E4E6;border-right:solid 1px #B6B4B6;border-bottom:solid 1px #B6B4B6}77 img.button1,a.button:hover img.button0,a.button:active img.button0,a.button:link img.button1,a.button:visited img.button1,a.button:hover img.button1,a.button:active img.button1{background-color:#F2F3EE;border-top:solid 1px black;border-left:solid 1px black;border-right:solid 1px white;border-bottom:solid 1px white}74 a.button:hover img,a.button:active img,a.vbutton:hover img,a.vbutton:active img,a.hbutton:hover img,a.hbutton:active img{background-color:#DFF1FF} 75 img.button0,a.button img.button0{} 76 img.button1,a.button img.button1{background-color:#A3D7FF} 77 a.button:hover img.button0,a.button:hover img.button1{background-color:#DFF1FF} 78 78 .zmiHSep{background-color:#B6B4B6;border-bottom:#E6E4E6 solid 1px} 79 79 .zmiVSep{background-color:#B6B6B6;border-right:solid #E6E4E6 1px;height:22px;width:1px} -
ZMS/trunk/plugins/www/manage_page_style.css
r1751 r1773 381 381 } 382 382 383 img.button, a.button:link img, a.button:visited img,384 img.vbutton, a.vbutton:link img, a.vbutton:visited img,385 img.hbutton, a.hbutton:link img, a.hbutton:visited img {386 border-top: solid 1px #E6E4E6;387 border-left: solid 1px #E6E4E6;388 border-right: solid 1px #B6B4B6;389 border-bottom: solid 1px #B6B4B6;390 }391 383 a.button:hover img, a.button:active img, 392 384 a.vbutton:hover img, a.vbutton:active img, 393 385 a.hbutton:hover img, a.hbutton:active img { 394 background-color: #E8E8E8; 395 border-top: solid 1px #FFF; 396 border-left: solid 1px #FFF; 397 border-right: solid 1px #000; 398 border-bottom: solid 1px #000; 399 } 400 401 img.button0, 402 a.button:link img.button0, a.button:visited img.button0 { 403 border-top: solid 1px #E6E4E6; 404 border-left: solid 1px #E6E4E6; 405 border-right: solid 1px #B6B4B6; 406 border-bottom: solid 1px #B6B4B6; 407 } 408 img.button1, 409 a.button:hover img.button0, a.button:active img.button0, 410 a.button:link img.button1, a.button:visited img.button1, 411 a.button:hover img.button1, a.button:active img.button1 { 412 background-color: #F2F3EE; 413 border-top: solid 1px black; 414 border-left: solid 1px black; 415 border-right: solid 1px white; 416 border-bottom: solid 1px white; 386 background-color: #DFF1FF; 387 } 388 389 img.button0, a.button img.button0 { 390 } 391 img.button1, a.button img.button1 { 392 background-color: #A3D7FF; 393 } 394 a.button:hover img.button0, 395 a.button:hover img.button1 { 396 background-color: #DFF1FF; 417 397 } 418 398
Note: See TracChangeset
for help on using the changeset viewer.
