📄 edit-form-advanced.php
字号:
<div class="wrap"><?php$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));$submitbutton_text = '保存';$toprow_title = '编辑文章 #' . $postdata['ID'];$form_action = 'editpost';$form_extra = "' />\n<input type='hidden' name='post_ID' value='$post->ID";$colspan = 2;$form_pingback = '<input type="hidden" name="post_pingback" value="0" />';$form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />';if (get_settings('use_trackback')) { $form_trackback = _LANG_EF_TRACK_FORM.' <input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" /> 使用UTF-8编码:<input value="1" type="checkbox" name="useutf8" id="useutf8" checked /></p>'; if ('' != $pinged) { $form_trackback .= '<p>已PING过:</p><ul>'; $already_pinged = explode("\n", trim($pinged)); foreach ($already_pinged as $pinged_url) { $form_trackback .= "\n\t<li>$pinged_url</li>"; } $form_trackback .= '</ul>'; }} else { $form_trackback = '';}$saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="'._LANG_EFA_SAVE_CONTINUE.'" />';?><form name="post" action="post.php" method="post" id="post"><input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /><input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /><script type="text/javascript"><!--function focusit() { // focus on first input field document.post.title.focus();}window.onload = focusit;//--></script><div id="poststuff"> <fieldset id="titlediv"> <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php echo _LANG_EF_AD_POSTTITLE; ?>帮助"><?php echo _LANG_EF_AD_POSTTITLE; ?></a></legend> <div><input type="text" name="post_title" size="80" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div> </fieldset></div><div id="poststuff"> <fieldset id="categorydiv"> <legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php echo _LANG_EF_AD_CATETITLE; ?>帮助"><?php echo _LANG_EF_AD_CATETITLE; ?></a></legend> <div><?php dropdown_categories($default_post_cat); ?></div> </fieldset> <fieldset id="poststatusdiv"> <legend><a href="http://wordpress.org/docs/reference/post/#post_status" title="<?php echo _LANG_EFA_POST_STATUS; ?>帮助"><?php echo _LANG_EFA_POST_STATUS; ?></a></legend> <div><label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post_status, 'publish'); ?> /> <?php echo _LANG_EF_AD_PUBLISH; ?></label> <label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post_status, 'draft'); ?> /> <?php echo _LANG_EF_AD_DRAFT; ?></label> <label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post_status, 'private'); ?> /> <?php echo _LANG_EF_AD_PRIVATE; ?></label></div> </fieldset> <fieldset id="commentstatusdiv"> <legend><a href="http://wordpress.org/docs/reference/post/#comments" title="<?php echo _LANG_EFA_AD_COMMENTS; ?>帮助"><?php echo _LANG_EFA_AD_COMMENTS; ?></a></legend> <div><label for="comment_status_open" class="selectit"><input id="comment_status_open" name="comment_status" type="radio" value="open" <?php checked($comment_status, 'open'); ?> /> <?php echo _LANG_EFA_STATUS_OPEN; ?></label> <label for="comment_status_closed" class="selectit"><input id="comment_status_closed" name="comment_status" type="radio" value="closed" <?php checked($comment_status, 'closed'); ?> /> <?php echo _LANG_EFA_STATUS_CLOSE; ?></label></div> </fieldset> <fieldset id="pingstatusdiv"> <legend><a href="http://wordpress.org/docs/reference/post/#pings" title="<?php echo _LANG_EFA_AD_PINGS; ?>帮助"><?php echo _LANG_EFA_AD_PINGS; ?></a></legend> <div><label for="ping_status_open" class="selectit"><input id="ping_status_open" name="ping_status" type="radio" value="open" <?php checked($ping_status, 'open'); ?> /> <?php echo _LANG_EFA_STATUS_OPEN; ?></label> <label for="ping_status_closed" class="selectit"><input id="ping_status_closed" name="ping_status" type="radio" value="closed" <?php checked($ping_status, 'closed'); ?> /> <?php echo _LANG_EFA_STATUS_CLOSE; ?></label></div> </fieldset> <fieldset id="postpassworddiv"> <legend><a href="http://wordpress.org/docs/reference/post/#post_password" title="<?php echo _LANG_EFA_POST_PASSWORD; ?>帮助"><?php echo _LANG_EFA_POST_PASSWORD; ?></a></legend> <div><input name="post_password" type="text" size="18" id="post_password" value="<?php echo $post_password ?>" /></div> </fieldset><br /><fieldset style="clear:both"><legend><a href="http://wordpress.org/docs/reference/post/#excerpt" title="<?php echo _LANG_EFA_POST_EXCERPT; ?>帮助"><?php echo _LANG_EFA_POST_EXCERPT; ?></a></legend><div><textarea rows="2" cols="40" name="excerpt" tabindex="4" id="excerpt"><?php echo $excerpt ?></textarea></div></fieldset><fieldset id="postdiv"><legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php echo _LANG_EF_AD_POSTAREA; ?>帮助"><?php echo _LANG_EF_AD_POSTAREA; ?></a></legend><?php$caption = '';$name ='wp_content';$value = $content;$rows = get_settings('default_post_edit_rows');$cols = 40;$width = '100%';$height = '400px';$isWysiwyg = false;if($editor = &wp_getWysiwygForm($xoopsModuleConfig['wp_editor'], $caption, $name, $value, $width, $height)) {}else{ $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, $rows, $cols, 'wp_content_hidden');}echo $editor->render();unset($editor);?></fieldset><?phpif ($action != 'editcomment') { if (get_settings('use_geo_positions')) { if (empty($edited_lat)) { if (get_settings('use_default_geourl')) { $edited_lat = get_settings('default_geourl_lat'); $edited_lon = get_settings('default_geourl_lon'); } }?><label for="post_latf"><?php echo _LANG_EFA_POST_LATITUDE; ?></label><input size="8" type="text" value="<?php echo $edited_lat; ?>" name="post_latf"> <label for="post_lonf"><?php echo _LANG_EFA_POST_LONGITUDE; ?></label><input size="8" type="text" value="<?php echo $edited_lon; ?>" name="post_lonf"> <a href="http://www.geourl.org/resources.html" rel="external" ><?php echo _LANG_EFA_POST_GEOINFO; ?></a><br /><?php }}?><?php echo $form_pingback ?><?php echo $form_prevstatus ?><p><?phpif ($action != 'editcomment') { if ( (get_settings('use_fileupload')) && ($user_level >= get_settings('fileupload_minlevel')) && (in_array($user_login, $allowed_users) || (trim(get_settings('fileupload_allowedusers'))=="")) ) { ?><input type="button" value="<?php echo _LANG_EFA_STATUS_UPLOAD; ?>" onclick="launchupload();" tabindex="10" /><?php }}?><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php echo _LANG_EF_AD_DRAFT; ?>" tabindex="6" /> <input name="publish" type="submit" id="publish" tabindex="10" value="<?php echo _LANG_EF_AD_PUBLISH; ?>" /> <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /></p><?phpecho $form_trackback;// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though// if (($user_level > 4) && ($action != "post"))if ($user_level > 4) { touch_time(($action == 'edit'));}if ('edit' == $action) echo "<p><a href='post.php?action=delete&post=$post->ID' onclick=\"return confirm('要删除 \'".addslashes($edited_post_title)."\'\\n 选择\'取消\'或 \'确定\'.')\">"._LANG_EFA_DEL_THISPOST."</a></p>";?></div></form></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -