[ Index ] |
|
Code source de GeekLog 1.4.1 |
1 <script> 2 function enablearchive(obj) { 3 var f = obj.form; // all elements have their parent form in "form" 4 var disable = obj.checked; // Disable when checked 5 if (f.elements["archiveflag"].checked==true && f.elements["storycode11"].checked==false) { 6 f.elements["storycode10"].checked=true; 7 } 8 f.elements["storycode10"].disabled=!disable; 9 f.elements["storycode11"].disabled=!disable; 10 f.elements["expire_month"].disabled=!disable; 11 f.elements["expire_day"].disabled=!disable; 12 f.elements["expire_year"].disabled=!disable; 13 f.elements["expire_hour"].disabled=!disable; 14 f.elements["expire_minute"].disabled=!disable; 15 f.elements["expire_ampm"].disabled=!disable; 16 } 17 </script> 18 <form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data"> 19 <table border="0" cellspacing="0" cellpadding="3" width="100%"> 20 <tr> 21 <td width="100px" class="alignright">{lang_author}:</td> 22 <td>{story_author}<input type="hidden" name="uid" value="{story_uid}"></td> 23 </tr> 24 <tr> 25 <td class="alignright" style="vertical-align:top;">{lang_date}:</td> 26 <td> 27 <select name="publish_month"> 28 {publish_month_options} 29 </select> 30 / 31 <select name="publish_day"> 32 {publish_day_options} 33 </select> 34 / 35 <select name="publish_year"> 36 {publish_year_options} 37 </select> 38 <select name="publish_hour"> 39 {publish_hour_options} 40 </select> 41 : 42 <select name="publish_minute"> 43 {publish_minute_options} 44 </select> 45 {publishampm_selection}<br> 46 <input type="hidden" name="publish_second" value="{publish_second}"> 47 {publish_date_explanation} 48 </td> 49 </tr> 50 <tr> 51 <td class="alignright">{lang_title}:</td> 52 <td><input type="text" size="48" maxlength="255" name="title" value="{story_title}"></td> 53 </tr> 54 <tr> 55 <td class="alignright">{lang_topic}:</td> 56 <td> 57 <select name="tid"> 58 {topic_options} 59 </select> 60 </td> 61 </tr> 62 <tr> 63 <td class="alignright">{lang_show_topic_icon}:</td> 64 <td> 65 <input type="checkbox" name="show_topic_icon" {show_topic_icon_checked}> 66 </td> 67 </tr> 68 <tr> 69 <td class="alignright">{lang_draft}:</td> 70 <td><input type="checkbox" name="draft_flag" {is_checked}></td> 71 </tr> 72 <tr> 73 <td colspan="2"> 74 <table border="0" cellspacing="0" cellpadding="3" width="100%"> 75 <tr> 76 <td colspan="3" style="padding-left:20px;">{lang_archivetitle}</td> 77 <tr> 78 <td width="20%" style="text-align:right;padding-right:5px;">{lang_option}:</td> 79 <td width="20%">{lang_enabled}:<input type="checkbox" name="archiveflag" value="1" {is_checked2} onclick="enablearchive(this);"></td> 80 <td style="text-align:left;"> 81 <label for="storycode10"> 82 <input type="radio" name="statuscode" id="storycode10" value="10" {is_checked3}>{lang_optionarchive} 83 </label> 84 <label for="storycode11"> 85 <input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4}>{lang_optiondelete} 86 </label> 87 </tr> 88 <tr> 89 <td style="text-align:right;vertical-align:top;padding-right:5px;">{lang_date}:</td> 90 <td colspan="2"> 91 <select id="expire_month" name="expire_month"> 92 {expire_month_options} 93 </select> 94 / 95 <select name="expire_day"> 96 {expire_day_options} 97 </select> 98 / 99 <select name="expire_year"> 100 {expire_year_options} 101 </select> 102 <select name="expire_hour"> 103 {expire_hour_options} 104 </select> 105 : 106 <select name="expire_minute"> 107 {expire_minute_options} 108 </select> 109 {expireampm_selection}<br> 110 <input type="hidden" name="expire_second" value="{expire_second}"> 111 </td> 112 </tr> 113 </table> 114 </td> 115 </tr> 116 <tr> 117 <td class="alignright" style="vertical-align:top;">{lang_mode}:</td> 118 <td style="vertical-align:top;"> 119 {featured_options} 120 <select name="frontpage"> 121 {frontpage_options} 122 </select><div style="padding-top:5px;"> 123 <select name="commentcode"> 124 {comment_options} 125 </select> 126 <select name="trackbackcode"> 127 {trackback_options} 128 </select> 129 </div> 130 </td> 131 </tr> 132 <tr> 133 <td class="alignright" style="vertical-align:top;">{lang_sid}:</td> 134 <td><input type="text" size="40" maxlength="40" name="sid" value="{story_id}"></td> 135 </tr> 136 <tr> 137 <td class="alignright" style="vertical-align:top;">{lang_introtext}:</td> 138 <td><textarea name="introtext" rows="12" style="width:100%">{story_introtext}</textarea></td> 139 </tr> 140 <tr> 141 <td class="alignright" style="vertical-align:top;">{lang_bodytext}:</td> 142 <td><textarea name="bodytext" rows="20" style="width:100%">{story_bodytext}</textarea></td> 143 </tr> 144 <tr> 145 <td class="alignright" style="vertical-align:top;"><b>{lang_postmode}:</b></td> 146 <td style="vertical-align:top;"> 147 <select name="postmode"> 148 {post_options} 149 </select> 150 <br> 151 {lang_allowed_html} 152 </td> 153 </tr> 154 <tr> 155 <td class="alignright" style="vertical-align:top;"><b>{lang_images}:</b></td> 156 <td style="vertical-align:top;"> 157 {saved_images} 158 {image_form_elements} 159 </td> 160 </tr> 161 <tr> 162 <td class="alignright">{lang_hits}:</td> 163 <td> 164 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 165 <tr> 166 <td class="alignleft"> 167 <input type="hidden" name="hits" value="{story_hits}">{story_hits} 168 <input type="hidden" name="comments" value="{story_comments}"> 169 <input type="hidden" name="trackbacks" value="{story_trackbacks}"> 170 <input type="hidden" name="numemails" value="{story_emails}"> 171 <input type="hidden" name="owner_id" value="{owner_id}"> 172 </td> 173 <td>{lang_comments}:{story_comments}</td> 174 <td>{lang_trackbacks}:{story_trackbacks}</td> 175 <td class="alignright">{lang_emails}:{story_emails}</td> 176 </tr> 177 </table> 178 </td> 179 </tr> 180 <tr> 181 <td colspan="2"><hr></td> 182 </tr> 183 <tr> 184 <td colspan="2"><b>{lang_accessrights}</b></td> 185 </tr> 186 <tr> 187 <td class="alignright">{lang_owner}:</td> 188 <td>{owner_name}</td> 189 </tr> 190 <tr> 191 <td class="alignright">{lang_group}:</td> 192 <td> 193 {group_dropdown} 194 </td> 195 </tr> 196 <tr> 197 <td colspan="2"> </td> 198 </tr> 199 <tr> 200 <td colspan="2"><b>{lang_permissions}</b>:</td> 201 </tr> 202 <tr> 203 <td colspan="2">{lang_perm_key}</td> 204 </tr> 205 <tr> 206 <td colspan="2"> 207 {permissions_editor} 208 </td> 209 </tr> 210 <tr> 211 <td colspan="2">{permissions_msg}</td> 212 </tr> 213 <tr><td colspan="2"> </td></tr> 214 <tr> 215 <td colspan="2"> 216 <input type="submit" value="{lang_save}" name="mode"> 217 <input type="submit" value="{lang_preview}" name="mode"> 218 <input type="submit" value="{lang_cancel}" name="mode"> 219 {delete_option} 220 {submission_option} 221 <input type="hidden" name="old_sid" value="{old_story_id}"> 222 <input type="hidden" name="editopt" value="default"> 223 <input type="hidden" name="hour_mode" value="{hour_mode}"> 224 </td> 225 </tr> 226 </table> 227 </form> 228 <script> 229 <!-- This code will only be executed by a browser that supports Javascript --> 230 var jstest = {showarchivedisabled}; 231 if (jstest) { 232 document.frmstory.expire_month.disabled=true; 233 document.frmstory.expire_day.disabled=true; 234 document.frmstory.expire_year.disabled=true; 235 document.frmstory.expire_hour.disabled=true; 236 document.frmstory.expire_minute.disabled=true; 237 document.frmstory.expire_ampm.disabled=true; 238 document.frmstory.storycode10.disabled=true; 239 document.frmstory.storycode11.disabled=true; 240 } 241 </script>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |