C:\wamp\www\phpld 4.2.1\PhpLD\templates\Professional\submit_article.tpl | C:\wamp\www\phpld42\PhpLD\templates\Professional\submit_article.tpl
1 {capture name="title"} - {l}Submit Article{/l}{/capture} 2 {capture assign="in_page_title"}{l}Submit Article{/l}{/capture} 3 {capture assign="description"}{l}Submit a new article to the directory{/l}{/capture} 4 {capture name="non_rules_agree"}<span class="errForm">You have to agree to the rules before submitting an article.</span>{/capture} 5 6 {include file="header.tpl"} 7 {include file="top_bar.tpl"} 8 9 {include file="validation.tpl" form_id="submit_form" validators=$validators} 10 11 {strip} 12 {if $smarty.const.DISABLE_ARTICLE_SUBMIT == 1 && $is_admin neq 1 } <table width="96%" border="0" align="center" cellpadding="4" cellspacing="4" class="sp_area"> <tr> <td> <h2>{l}Closed{/l}</h2> </td> </tr> <tr> <td> {l}We are sorry but articles submissions are closed.{/l}<br /> {$disablearticlereason} </td> </tr> </table> <br /> {else} 13 {if ($confirmed)} 14 <table border="0" class="formPage"> 15 <tr><td colspan="2" class="msg"> 16 {l}The article's email address has been confirmed.{/l}<br /> 17 {l}The article will be listed as soon as it is approved by a site administrator.{/l} 18 </td></tr> 19 </table> 20 {/if} 21 {if $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1 and empty($regular_user_details.ID)} 22 23 <table border="0" class="formPage" align="center" style="clear:both; margin-top:3em;"> 24 <tr> 25 <td> 26 <h3>{l}Information{/l}</h3> 27 </td> 28 </tr> 29 <tr> 30 <td> 31 {l}You must be logged in to submit a new article.{/l} 32 <br /> 33 {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Become an Author{/l}">{l}Become an Author{/l}</a> 34 </td> 35 </tr> 36 </table> 37 38 {else} 39 40 <form method="post" action="" id="submit_form" name="edit_article_form" class="cmxform"> 41 <table border="0" class="formPage"> 42 {if $error} 43 <tr><td colspan="2" class="err"> 44 {l}An error has occured {foreach name=errorList from=$error_list key=errorKey item=errorItem} 45 {if $errorKey == 'DO_MATH'} 46 {if is_array($errorItem)} 47 {$errorItem.remote} 48 {else} 49 {$errorItem} 50 {/if} 51 {/if} 52 {/foreach}.{/l} 53 </td></tr> 54 {/if} 55 {if $double_review and !$posted} 56 <tr><td colspan="2" class="err"> 57 {$double_review} 58 </td></tr> 59 {/if} 60 61 {if $posted} 62 <tr><td colspan="2" class="msg"> 63 {l}Article submitted {/l}{if $waiting_approval eq 1}{l}and awaiting approval{/l}{/if}.<br /> 64 {l}Submit another article.{/l} 65 </td></tr> 66 {/if} 67 {if $needs_confirmation} 68 <tr><td colspan="2" class="msg"> 69 {l}The email address you provided needs to be confirmed before the article is listed.{/l}<br /> 70 {l}Please check your email for the confirmation link.{/l} 71 </td></tr> 72 {/if} 73 74 {if $smarty.const.ARTICLE_PAY_ENABLE} 75 {if $dont_show_pay neq 1} 76 <tr><td colspan="2"> 77 <div class="fields"> 78 <div class="fields_c"> 79 <h3>{l}Pricing{/l}</h3> 80 <table border="0" cellspacing="0" cellpadding="0"> 81 {if $smarty.const.ARTICLE_PAY_FEATURED} 82 <tr><td><input type="radio" id="featured" name="ARTICLE_TYPE" value="featured" {if $ARTICLE_TYPE eq 'featured'}checked="true"{/if}><label for="featured">{l}Featured articles{/l}</label></td><td>{$smarty.const.HTML_CURRENCY_CODE}{$smarty.const.ARTICLE_PAY_FEATURED} </td></tr> 83 {/if} 84 {if $smarty.const.ARTICLE_PAY_NORMAL gt 0} 85 <tr><td><input type="radio" id="normal" name="ARTICLE_TYPE" value="normal" {if $ARTICLE_TYPE eq 'normal'}checked="true"{/if}><label for="normal">{l}Regular articles{/l}</label></td><td>{$smarty.const.HTML_CURRENCY_CODE}{$smarty.const.ARTICLE_PAY_NORMAL} </td></tr> 86 {elseif $smarty.const.ARTICLE_PAY_NORMAL eq 0} 87 <tr><td><input type="radio" id="normal" name="ARTICLE_TYPE" value="normal" {if $ARTICLE_TYPE eq 'normal'}checked="true"{/if}><label for="normal">{l}Regular articles{/l}</label></td><td>{l}free{/l}</td></tr> 88 {/if} 89 {if $smarty.const.ARTICLE_PAY_ENABLE_FREE} 90 <tr><td><input type="radio" id="free" name="ARTICLE_TYPE" value="free" {if $ARTICLE_TYPE eq 'free'}checked="true"{/if}><label for="free">{l}Articles with nofollow attribute{/l}</label></td><td>free</td></tr> 91 {/if} 92 </table> 93 {*validate form="submit_article" id="v_ARTICLE_TYPE" message=$smarty.capture.field_link_type*} 94 {if isset($AllowedFeat) and $AllowedFeat ne 1} 95 <br /><span class="errForm">{l}No more featured articles allowed for this category.{/l}</span> 96 {/if} 97 </div> 98 <div class="fields_b"></div> 99 </div> 100 </td></tr> 101 {/if} 102 {/if} 103 104 <tr> 105 <td class="label underlined" align='left' colspan="2">{l}Fields marked with a {/l}<span class='req'>*</span>{l} are required.{/l}</td> 106 </tr> 107 108 <tr> 109 <td class="label" width="25%"><span class='req'>*</span>{l}Title{/l}:</td> 110 <td class="field"> 111 <input class="text" type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="{$smarty.const.ARTICLE_TITLE_MAX_LENGTH}" /> 112 {*validate form="submit_article" id="v_TITLE" message=$smarty.capture.field_char_required*} 113 {if $review_articlee == 0 || $remove_article == 0} 114 {*validate form="submit_article" id="v_TITLE_U" message=$smarty.capture.title_not_unique*} 115 {/if} 116 {*validate form="submit_article" id="v_TITLE_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.ARTICLE_TITLE_MIN_LENGTH|replace:'#MAX#':$smarty.const.ARTICLE_TITLE_MAX_LENGTH*} 117 </td> 118 </tr> 119 <tr> 120 <td class="label" width="25%"><span class='req'>*</span>{l}Short Description{/l}:</td> 121 <td class="field"> 122 <textarea name="DESCRIPTION" rows="4" cols="36" class="text" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.ARTICLE_DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea> 123 {*validate form="submit_article" id="v_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.ARTICLE_DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.ARTICLE_DESCRIPTION_MAX_LENGTH*} <br /> 124 {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" /> 125 </td> 126 </tr> 127 <tr> 128 <td class="label" width="25%">{l}Article{/l}:</td> 129 <td class="field"> 130 {include file="rte.tpl" NAME="ARTICLE" VALUE=$ARTICLE} 131 </td> 132 </tr> 133 {if $smarty.const.ENABLE_META_TAGS eq 1 and $smarty.const.ENABLE_USER_META_TAGS_ARTICLE eq 1} 134 <tr> 135 <td class="label" width="25%" width="10%">{l}META Keywords{/l}:</td> 136 <td class="field"> 137 <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="40" maxlength="2000" class="text" /> 138 <p class="small">{l}Separate keywords by comma.{/l}</p> 139 {*validate form="submit_article" id="v_META_KEYWORDS_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.META_KEYWORDS_MIN_LENGTH|replace:'#MAX#':$smarty.const.META_KEYWORDS_MAX_LENGTH*} 140 </td> 141 </tr> 142 <tr> 143 <td class="label" width="25%">{l}META Description{/l}:</td> 144 <td class="field"> 145 <textarea name="META_DESCRIPTION" rows="3" cols="30" class="text" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.META_DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea> 146 {*validate form="submit_article" id="v_META_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.META_DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.META_DESCRIPTION_MAX_LENGTH*} 147 <br /> 148 {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" /> 149 </td> 150 </tr> 151 {/if} 152 {if $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 0 || empty($regular_user_details.ID)} 153 <tr> 154 <td class="label" width="25%"><span class='req'>*</span>{l}Your Name{/l}:</td> 155 <td class="field"> 156 <input type="text" name="OWNER_NAME" value="{$OWNER_NAME|escape|trim}" size="40" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" /> 157 {*validate form="submit_article" id="v_OWNER_NAME" message=$smarty.capture.field_char_required*} 158 {*validate form="submit_article" id="v_OWNER_NAME_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_NAME_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_NAME_MAX_LENGTH*} 159 </td> 160 </tr> 161 <tr> 162 <td class="label" width="25%"><span class='req'>*</span>{l}Your Email{/l}:</td> 163 <td class="field"> 164 <input type="text" name="OWNER_EMAIL" value="{$OWNER_EMAIL|escape|trim}" size="40" maxlength="255" class="text" /> 165 {*validate form="submit_article" id="v_OWNER_EMAIL" message=$smarty.capture.invalid_email*} 166 {*validate form="submit_article" id="v_OWNER_EMAIL_BANNED" message=$smarty.capture.email_banned*} 167 </td> 168 </tr> 169 {/if} 170 171 <tr> 172 <td class="label" width="25%"><span class='req'>*</span>{l}Category{/l}:</td> 173 <td class="field"> 174 {* Load category selection *} 175 {include file="category_select_article.tpl"} 176 </td> 177 </tr> 178 179 {if $remove_article} 180 <tr> 181 <td class="label" width="25%">{l}Mark for removal{/l}:</td> 182 <td class="field"> 183 <input type="checkbox" id="MARK_REMOVE" name="MARK_REMOVE" /><span class="small">{l}Use with caution{/l}</span> 184 </td> 185 </tr> 186 {/if} 187 188 {if $is_admin eq 1 } 189 <tr> 190 <td class="label">{l}Release Date{/l}:</td> 191 <td class="field"> 192 <input id="RELEASE_DATE" type="text" name="RELEASE_DATE" value="{$RELEASE_DATE}" class="text"/> 193 <a href="" 194 style="display: block; float: left; margin-left: 5px; margin-top: 1px;" 195 onclick="window.open( 196 'date_cal.html', 197 'calendar', 198 'toolbar=no,titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,dependent=no,width=220,height=220'); 199 return false;"> 200 <img src="images/date_btn.gif" border="0"></a> 201 </td> 202 </tr> 203 {/if} 204 {if $smarty.const.VISUAL_CONFIRM eq 2} 205 <tr> 206 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 207 <td class="field"> 208 <span style="color: red;"> 209 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 210 {if $errorKey == 'DO_MATH'} 211 {if is_array($errorItem)} 212 {$errorItem.remote}<br/> 213 {else} 214 {$errorItem}<br/> 215 {/if} 216 {/if} 217 {/foreach} 218 </span> 219 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 220 <br/> 221 <br/> 222 </td> 223 </tr> 224 {/if} 225 {if $smarty.const.VISUAL_CONFIRM eq 1} 226 {if $dont_show_captch neq 1} 227 <tr> 228 <td class="label" width="25%"><span class='req'>*</span>{l}Enter the code shown{/l}:</td> 229 <td class="field"> 230 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 231 <input class="text" id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}"/> 232 {*validate form="submit_article" id="v_CAPTCHA" message=$smarty.capture.invalid_code*} 233 <br /> 234 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 235 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 236 </td> 237 </tr> 238 {/if} 239 {/if} 240 <tr> 241 <td class="label" width="25%"><span class='req'>*</span><a href="{$smarty.const.DOC_ROOT}/rules.php" title="Submission Rules" target='_blank'>Submission Rules</a> Agreement:</td> 242 <td class="field"> 243 <input type="checkbox" id="AGREERULES" name="AGREERULES"{if $AGREERULES eq 'on'} checked="checked"{/if} /> {l}I AGREE with the {/l}<a href="{$smarty.const.DOC_ROOT}/rules.php" title="Submission Rules" target='_blank'>{l}submission rules{/l}</a> 244 {*validate form="submit_article" id="v_AGREERULES" message=$smarty.capture.non_rules_agree*}</td> 245 </tr> 246 <tr> 247 <td colspan="2" class="buttons"> 248 {if !$review_article and !$remove_article} 249 <input type="submit" name="continue" value="{l}Continue{/l}" class="btn" /> 250 <input type="hidden" name="formSubmitted" value="1" /> 251 {else} 252 <input type="submit" name="edit" value="{l}Continue{/l}" class="btn" /> 253 <input type="hidden" name="edit" value="1" /> 254 {/if} 255 </td> 256 </tr> 257 </table> 258 259 <input type="hidden" name="id" value="{$article_id}" /> 260 261 </form> 262 {/if} 263 {/if} 264 {include file="footer.tpl"} 265 {/strip} | 1 {capture name="title"} - {l}Submit Article{/l}{/capture} 2 {capture assign="in_page_title"}{l}Submit Article{/l}{/capture} 3 {capture assign="description"}{l}Submit a new article to the directory{/l}{/capture} 4 {capture name="non_rules_agree"}<span class="errForm">You have to agree to the rules before submitting an article.</span>{/capture} 5 6 {include file="header.tpl"} 7 {include file="top_bar.tpl"} 8 9 {include file="validation.tpl" form_id="submit_form" validators=$validators} 10 11 {strip} 12 {if $smarty.const.DISABLE_ARTICLE_SUBMIT == 1 && $is_admin neq 1 } <table width="96%" border="0" align="center" cellpadding="4" cellspacing="4" class="sp_area"> <tr> <td> <h2>{l}Closed{/l}</h2> </td> </tr> <tr> <td> {l}We are sorry but articles submissions are closed.{/l}<br /> {$disablearticlereason} </td> </tr> </table> <br /> {else} 13 {if ($confirmed)} 14 <table border="0" class="formPage"> 15 <tr><td colspan="2" class="msg"> 16 {l}The article's email address has been confirmed.{/l}<br /> 17 {l}The article will be listed as soon as it is approved by a site administrator.{/l} 18 </td></tr> 19 </table> 20 {/if} 21 {if $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1 and empty($regular_user_details.ID)} 22 23 <table border="0" class="formPage" align="center" style="clear:both; margin-top:3em;"> 24 <tr> 25 <td> 26 <h3>{l}Information{/l}</h3> 27 </td> 28 </tr> 29 <tr> 30 <td> 31 {l}You must be logged in to submit a new article.{/l} 32 <br /> 33 {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Become an Author{/l}">{l}Become an Author{/l}</a> 34 </td> 35 </tr> 36 </table> 37 38 {else} 39 40 <form method="post" action="" id="submit_form" class="cmxform"> 41 <table border="0" class="formPage"> 42 {if $error} 43 <tr><td colspan="2" class="err"> 44 {l}An error has occured {foreach name=errorList from=$error_list key=errorKey item=errorItem} 45 {if $errorKey == 'DO_MATH'} 46 {if is_array($errorItem)} 47 {$errorItem.remote} 48 {else} 49 {$errorItem} 50 {/if} 51 {/if} 52 {/foreach}.{/l} 53 </td></tr> 54 {/if} 55 {if $double_review and !$posted} 56 <tr><td colspan="2" class="err"> 57 {$double_review} 58 </td></tr> 59 {/if} 60 61 {if $posted} 62 <tr><td colspan="2" class="msg"> 63 {l}Article submitted {/l}{if $waiting_approval eq 1}{l}and awaiting approval{/l}{/if}.<br /> 64 {l}Submit another article.{/l} 65 </td></tr> 66 {/if} 67 {if $needs_confirmation} 68 <tr><td colspan="2" class="msg"> 69 {l}The email address you provided needs to be confirmed before the article is listed.{/l}<br /> 70 {l}Please check your email for the confirmation link.{/l} 71 </td></tr> 72 {/if} 73 74 {if $smarty.const.ARTICLE_PAY_ENABLE} 75 {if $dont_show_pay neq 1} 76 <tr><td colspan="2"> 77 <div class="fields"> 78 <div class="fields_c"> 79 <h3>{l}Pricing{/l}</h3> 80 <table border="0" cellspacing="0" cellpadding="0"> 81 {if $smarty.const.ARTICLE_PAY_FEATURED} 82 <tr><td><input type="radio" id="featured" name="ARTICLE_TYPE" value="featured" {if $ARTICLE_TYPE eq 'featured'}checked="true"{/if}><label for="featured">{l}Featured articles{/l}</label></td><td>{$smarty.const.HTML_CURRENCY_CODE}{$smarty.const.ARTICLE_PAY_FEATURED} </td></tr> 83 {/if} 84 {if $smarty.const.ARTICLE_PAY_NORMAL gt 0} 85 <tr><td><input type="radio" id="normal" name="ARTICLE_TYPE" value="normal" {if $ARTICLE_TYPE eq 'normal'}checked="true"{/if}><label for="normal">{l}Regular articles{/l}</label></td><td>{$smarty.const.HTML_CURRENCY_CODE}{$smarty.const.ARTICLE_PAY_NORMAL} </td></tr> 86 {elseif $smarty.const.ARTICLE_PAY_NORMAL eq 0} 87 <tr><td><input type="radio" id="normal" name="ARTICLE_TYPE" value="normal" {if $ARTICLE_TYPE eq 'normal'}checked="true"{/if}><label for="normal">{l}Regular articles{/l}</label></td><td>{l}free{/l}</td></tr> 88 {/if} 89 {if $smarty.const.ARTICLE_PAY_ENABLE_FREE} 90 <tr><td><input type="radio" id="free" name="ARTICLE_TYPE" value="free" {if $ARTICLE_TYPE eq 'free'}checked="true"{/if}><label for="free">{l}Articles with nofollow attribute{/l}</label></td><td>free</td></tr> 91 {/if} 92 </table> 93 {*validate form="submit_article" id="v_ARTICLE_TYPE" message=$smarty.capture.field_link_type*} 94 {if isset($AllowedFeat) and $AllowedFeat ne 1} 95 <br /><span class="errForm">{l}No more featured articles allowed for this category.{/l}</span> 96 {/if} 97 </div> 98 <div class="fields_b"></div> 99 </div> 100 </td></tr> 101 {/if} 102 {/if} 103 104 <tr> 105 <td class="label underlined" align='left' colspan="2">{l}Fields marked with a {/l}<span class='req'>*</span>{l} are required.{/l}</td> 106 </tr> 107 108 <tr> 109 <td class="label" width="25%"><span class='req'>*</span>{l}Title{/l}:</td> 110 <td class="field"> 111 <input class="text" type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="{$smarty.const.ARTICLE_TITLE_MAX_LENGTH}" /> 112 {*validate form="submit_article" id="v_TITLE" message=$smarty.capture.field_char_required*} 113 {if $review_articlee == 0 || $remove_article == 0} 114 {*validate form="submit_article" id="v_TITLE_U" message=$smarty.capture.title_not_unique*} 115 {/if} 116 {*validate form="submit_article" id="v_TITLE_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.ARTICLE_TITLE_MIN_LENGTH|replace:'#MAX#':$smarty.const.ARTICLE_TITLE_MAX_LENGTH*} 117 </td> 118 </tr> 119 <tr> 120 <td class="label" width="25%"><span class='req'>*</span>{l}Short Description{/l}:</td> 121 <td class="field"> 122 <textarea name="DESCRIPTION" rows="4" cols="36" class="text" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.ARTICLE_DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea> 123 {*validate form="submit_article" id="v_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.ARTICLE_DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.ARTICLE_DESCRIPTION_MAX_LENGTH*} <br /> 124 {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" /> 125 </td> 126 </tr> 127 <tr> 128 <td class="label" width="25%">{l}Article{/l}:</td> 129 <td class="field"> 130 {include file="rte.tpl" NAME="ARTICLE" VALUE=$ARTICLE} 131 </td> 132 </tr> 133 {if $smarty.const.ENABLE_META_TAGS eq 1 and $smarty.const.ENABLE_USER_META_TAGS_ARTICLE eq 1} 134 <tr> 135 <td class="label" width="25%" width="10%">{l}META Keywords{/l}:</td> 136 <td class="field"> 137 <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="40" maxlength="2000" class="text" /> 138 <p class="small">{l}Separate keywords by comma.{/l}</p> 139 {*validate form="submit_article" id="v_META_KEYWORDS_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.META_KEYWORDS_MIN_LENGTH|replace:'#MAX#':$smarty.const.META_KEYWORDS_MAX_LENGTH*} 140 </td> 141 </tr> 142 <tr> 143 <td class="label" width="25%">{l}META Description{/l}:</td> 144 <td class="field"> 145 <textarea name="META_DESCRIPTION" rows="3" cols="30" class="text" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.META_DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea> 146 {*validate form="submit_article" id="v_META_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.META_DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.META_DESCRIPTION_MAX_LENGTH*} 147 <br /> 148 {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" /> 149 </td> 150 </tr> 151 {/if} 152 {if $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 0 || empty($regular_user_details.ID)} 153 <tr> 154 <td class="label" width="25%"><span class='req'>*</span>{l}Your Name{/l}:</td> 155 <td class="field"> 156 <input type="text" name="OWNER_NAME" value="{$OWNER_NAME|escape|trim}" size="40" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" /> 157 {*validate form="submit_article" id="v_OWNER_NAME" message=$smarty.capture.field_char_required*} 158 {*validate form="submit_article" id="v_OWNER_NAME_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_NAME_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_NAME_MAX_LENGTH*} 159 </td> 160 </tr> 161 <tr> 162 <td class="label" width="25%"><span class='req'>*</span>{l}Your Email{/l}:</td> 163 <td class="field"> 164 <input type="text" name="OWNER_EMAIL" value="{$OWNER_EMAIL|escape|trim}" size="40" maxlength="255" class="text" /> 165 {*validate form="submit_article" id="v_OWNER_EMAIL" message=$smarty.capture.invalid_email*} 166 {*validate form="submit_article" id="v_OWNER_EMAIL_BANNED" message=$smarty.capture.email_banned*} 167 </td> 168 </tr> 169 {/if} 170 171 <tr> 172 <td class="label" width="25%"><span class='req'>*</span>{l}Category{/l}:</td> 173 <td class="field"> 174 {* Load category selection *} 175 {include file="category_select_article.tpl"} 176 </td> 177 </tr> 178 179 {if $remove_article} 180 <tr> 181 <td class="label" width="25%">{l}Mark for removal{/l}:</td> 182 <td class="field"> 183 <input type="checkbox" id="MARK_REMOVE" name="MARK_REMOVE" /><span class="small">{l}Use with caution{/l}</span> 184 </td> 185 </tr> 186 {/if} 187 188 {if $is_admin eq 1 } 189 <tr> 190 <td class="label">{l}Release Date{/l}:</td> 191 <td class="field"> 192 <input id="RELEASE_DATE" type="text" name="RELEASE_DATE" value="{$RELEASE_DATE}" class="text"/> 193 <a href="" 194 style="display: block; float: left; margin-left: 5px; margin-top: 1px;" 195 onclick="window.open( 196 'date_cal.html', 197 'calendar', 198 'toolbar=no,titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,dependent=no,width=220,height=220'); 199 return false;"> 200 <img src="images/date_btn.gif" border="0"></a> 201 </td> 202 </tr> 203 {/if} 204 {if $smarty.const.VISUAL_CONFIRM eq 2} 205 <tr> 206 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td> 207 <td class="field"> 208 <span style="color: red;"> 209 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 210 {if $errorKey == 'DO_MATH'} 211 {if is_array($errorItem)} 212 {$errorItem.remote}<br/> 213 {else} 214 {$errorItem}<br/> 215 {/if} 216 {/if} 217 {/foreach} 218 </span> 219 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/> 220 <br/> 221 <br/> 222 </td> 223 </tr> 224 {/if} 225 {if $smarty.const.VISUAL_CONFIRM eq 1} 226 {if $dont_show_captch neq 1} 227 <tr> 228 <td class="label" width="25%"><span class='req'>*</span>{l}Enter the code shown{/l}:</td> 229 <td class="field"> 230 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 231 <input class="text" id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}"/> 232 {*validate form="submit_article" id="v_CAPTCHA" message=$smarty.capture.invalid_code*} 233 <br /> 234 <p class="small">{l}This helps prevent automated registrations.{/l}</p> 235 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" /> 236 </td> 237 </tr> 238 {/if} 239 {/if} 240 <tr> 241 <td class="label" width="25%"><span class='req'>*</span><a href="{$smarty.const.DOC_ROOT}/rules.php" title="Submission Rules" target='_blank'>Submission Rules</a> Agreement:</td> 242 <td class="field"> 243 <input type="checkbox" id="AGREERULES" name="AGREERULES"{if $AGREERULES eq 'on'} checked="checked"{/if} /> {l}I AGREE with the {/l}<a href="{$smarty.const.DOC_ROOT}/rules.php" title="Submission Rules" target='_blank'>{l}submission rules{/l}</a> 244 {*validate form="submit_article" id="v_AGREERULES" message=$smarty.capture.non_rules_agree*}</td> 245 </tr> 246 <tr> 247 <td colspan="2" class="buttons"> 248 {if !$review_article and !$remove_article} 249 <input type="submit" name="continue" value="{l}Continue{/l}" class="btn" /> 250 <input type="hidden" name="formSubmitted" value="1" /> 251 {else} 252 <input type="submit" name="edit" value="{l}Continue{/l}" class="btn" /> 253 <input type="hidden" name="edit" value="1" /> 254 {/if} 255 </td> 256 </tr> 257 </table> 258 259 <input type="hidden" name="id" value="{$article_id}" /> 260 261 </form> 262 {/if} 263 {/if} 264 {include file="footer.tpl"} 265 {/strip}
Legend: | Added(0,0) | Deleted(0,1) | Changed(1) | Changed in changed(0)