[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> 3 <!-- 4 {literal} 5 function checkAll() 6 { 7 {/literal} 8 if ( document.draftaction.selectall.value == "{'Select all'|i18n('design/standard/content/view')}" ) 9 {literal} 10 { 11 {/literal} 12 document.draftaction.selectall.value = "{'Deselect all'|i18n('design/standard/content/view')}"; 13 {literal} 14 with (document.draftaction) 15 { 16 for (var i=0; i < elements.length; i++) 17 { 18 if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]') 19 elements[i].checked = true; 20 } 21 } 22 } 23 else 24 { 25 {/literal} 26 document.draftaction.selectall.value = "{'Select all'|i18n('design/standard/content/view')}"; 27 {literal} 28 with (document.draftaction) 29 { 30 for (var i=0; i < elements.length; i++) 31 { 32 if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]') 33 elements[i].checked = false; 34 } 35 } 36 } 37 } 38 {/literal} 39 //--> 40 </SCRIPT> 41 {let page_limit=30 42 list_count=fetch('content','draft_count')} 43 44 <form name="draftaction" action={concat("content/draft/")|ezurl} method="post" > 45 46 <div class="maincontentheader"> 47 <h1>{"My drafts"|i18n("design/standard/content/view")}</h1> 48 </div> 49 50 {let draft_list=fetch('content','draft_version_list',hash(limit,$page_limit,offset,$view_parameters.offset))} 51 52 {section show=$draft_list} 53 54 <div class="buttonblock"> 55 <input type="submit" name="EmptyButton" value="{'Empty Draft'|i18n('design/standard/content/view')}" /> 56 </div> 57 58 <p> 59 {"These are the current objects you are working on. The drafts are owned by you and can only be seen by you. 60 You can either edit the drafts or remove them if you don't need them any more."|i18n("design/standard/content/view")|nl2br} 61 </p> 62 63 <table class="list" width="100%" cellspacing="0" cellpadding="0" border="0"> 64 <tr> 65 <th></th> 66 <th>{"Name"|i18n("design/standard/content/view")}</th> 67 <th>{"Class"|i18n("design/standard/content/view")}</th> 68 <th>{"Section"|i18n("design/standard/content/view")}</th> 69 <th>{"Version"|i18n("design/standard/content/view")}</th> 70 <th>{"Language"|i18n("design/standard/content/view")}</th> 71 <th>{"Last modified"|i18n("design/standard/content/view")}</th> 72 <th>{"Edit"|i18n("design/standard/content/view")}</th> 73 </tr> 74 75 {section name=Draft loop=$draft_list sequence=array(bglight,bgdark)} 76 <tr class="{$Draft:sequence}"> 77 <td align="left" width="1"> 78 <input type="checkbox" name="DeleteIDArray[]" value="{$Draft:item.id}" /> 79 </td> 80 <td> 81 <a href={concat("/content/versionview/",$Draft:item.contentobject.id,"/",$Draft:item.version,"/")|ezurl}>{$Draft:item.contentobject.content_class.identifier|class_icon( small, $Draft:item.contentobject.content_class.name )} {$Draft:item.version_name|wash}</a> 82 </td> 83 <td> 84 {$Draft:item.contentobject.content_class.name|wash} 85 </td> 86 <td> 87 {$Draft:item.contentobject.section_id} 88 </td> 89 <td> 90 {$Draft:item.version} 91 </td> 92 <td> 93 <img src="{$Draft:item.initial_language.locale|flag_icon}" alt="{$Draft:item.initial_language.locale|wash}" /> {$Draft:item.initial_language.name|wash} 94 </td> 95 <td> 96 {$:item.modified|l10n(datetime)} 97 </td> 98 <td width="1"> 99 <a href={concat("/content/edit/",$Draft:item.contentobject.id,"/",$Draft:item.version,"/")|ezurl}><img src={"edit.gif"|ezimage} border="0"></a> 100 </td> 101 </tr> 102 {/section} 103 <tr> 104 <td colspan="3" align="left"> 105 <input type="image" name="RemoveButton" value="{'Remove'|i18n('design/standard/content/view')}" src={"trash.png"|ezimage} /> 106 <input name="selectall" onclick=checkAll() type="button" value="{'Select all'|i18n('design/standard/content/view')}"> 107 </td> 108 <td colspan="4"> 109 </td> 110 </tr> 111 </table> 112 {include name=navigator 113 uri='design:navigator/google.tpl' 114 page_uri='/content/draft' 115 item_count=$list_count 116 view_parameters=$view_parameters 117 item_limit=$page_limit} 118 119 {section-else} 120 121 <div class="feedback"> 122 <h2>{"You have no drafts"|i18n("design/standard/content/view")}</h2> 123 </div> 124 125 {/section}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |