C:\wamp\www\phpld42 with cron count\PhpLD\templates\Professional\header.tpl | C:\wamp\www\phpld42\PhpLD\templates\Professional\header.tpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 {* Document/Browser title *} 5 <title>{if empty ($tdescription)}{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if} {$smarty.capture.title|strip|trim}{/if} {$tdescription} </title> 6 {* Document character set *} 7 <meta http-equiv="Content-Type" content="text/html; charset={$smarty.const.CHARSET}" /> 8 9 {* CSS Style file *} 10 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/main.css" /> 11 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/fileuploader.css" /> 12 13 {* Custom META tags *} 14 {if $smarty.const.ENABLE_META_TAGS} 15 {if !empty($MetaKeywords)} 16 <meta name="keywords" content="{$MetaKeywords|strip|escape|trim}" /> 17 {/if} 18 {if !empty($MetaDescription)} 19 <meta name="description" content="{$MetaDescription|strip|escape|trim}" /> 20 {/if} 21 {if !empty($MetaAuthor)} 22 <meta name="author" content="{$MetaAuthor}" /> 23 {/if} 24 {if !empty($MetaCopyright)} 25 <meta name="copyright" content="{$MetaCopyright|strip|escape|trim}" /> 26 {/if} 27 {if !empty($MetaRobots)} 28 <meta name="robots" content="{$MetaRobots|strip|escape|trim}" /> 29 {/if} 30 {/if} 31 {if $scriptname == 'detail' && !empty($link_data.ID)} 32 <link rel="canonical" href="{$smarty.const.SITE_URL}{$link_data.CANONICAL}" /> 33 {elseif $scriptname == 'article' && !empty($ID)} 34 <link rel="canonical" href="{$smarty.const.SITE_URL}{$CANONICAL}" /> 35 {elseif $scriptname == 'index' && $category.ID == '0' && !$list && !$search && !$uid} 36 <link rel="canonical" href="{$smarty.const.SITE_URL}" /> 37 {else} 38 {/if} 39 {* Please keep this line for better version tracking *} 40 <meta name="generator" content="PHP Link Directory {$smarty.const.CURRENT_VERSION}" /> 41 42 {* Live Bookmarks *} 43 {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID gt 0 or $list) and count($links) gt 0} 44 <link rel="alternate" type="application/rss+xml" title="{$in_page_title|escape|trim}" href="{$smarty.const.SITE_URL}rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $p > 1}p={$p}{elseif $list}list={$list}{else}c={$category.ID}{/if}" /> 45 {/if} 46 47 {* JavaScript libraries *} 48 {if $load_Javascript} 49 {if $smarty.const.USE_CDN eq 1} 50 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 51 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> 52 {else} 53 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery-1.7.2.min.js"></script> 54 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery-ui-1.8.20.custom.min.js"></script> 55 {/if} 56 57 58 <script src="{$smarty.const.DOC_ROOT}/javascripts/ajaxupload.js" type="text/javascript"></script> 59 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery.validate.js"></script> 60 61 62 {if $is_detail} 63 64 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/jcarousel.css" /> 65 66 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery.jcarousel.min.js"></script> 67 68 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/flowplayer-3.2.6.min.js"></script> 69 {/if} 70 71 <script type="text/javascript"> 72 {literal}jQuery.noConflict();{/literal} 73 </script> 74 75 {* SmartyFormtool for manipulating forms with JavaScript *} 76 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/formtool/formtool.js"></script> 77 78 79 {* AJAX category selection library *} 80 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/thickbox/thickbox.js"></script> 81 <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/javascripts/thickbox/ThickBox.css" type="text/css" media="screen" /> 82 83 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script> 84 <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/javascripts/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> 85 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/categ_selection/categ_selection.js"></script> 86 87 {elseif $uLevel eq 1} 88 {* Load JavaScript libraries for widgets sorting *} 89 {if $smarty.const.USE_CDN eq 1} 90 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 91 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> 92 {else} 93 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery-1.7.2.min.js"></script> 94 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery-ui-1.8.20.custom.min.js"></script> 95 {/if} 96 {/if} 97 98 {literal} 99 <script type="text/javascript"> 100 var valid_obj = new Object(); 101 </script> 102 {/literal} 103 104 </head> 105 {if $scriptname == "detail" & !empty($link_data.ADDRESS)} 106 <body onload="load()" onunload="GUnload()"> 107 {else} 108 <body> 109 {/if} 110 <script type="text/javascript"> 111 {literal} 112 113 function increase_height() { 114 height = parseInt(document.getElementById('slide').style.marginTop); 115 if (height<110) { 116 document.getElementById('slide').style.marginTop = eval(height+2)+"px"; 117 setTimeout("increase_height()",0.0001); 118 } else { 119 document.getElementById('panel').style.zIndex = 200; 120 } 121 } 122 123 function decrease_height() { 124 height = parseInt(document.getElementById('slide').style.marginTop); 125 document.getElementById('panel').style.zIndex = -1; 126 if (height>0) { 127 document.getElementById('slide').style.marginTop = eval(height-2)+"px"; 128 setTimeout("decrease_height()",0.0001); 129 } 130 } 131 132 function show_panel() { 133 134 height = parseInt(document.getElementById('slide').style.marginTop); 135 if (height>0) { 136 decrease_height(); 137 } else { 138 increase_height(); 139 } 140 return false; 141 } 142 143 function ajaxFunction() 144 { 145 146 var xmlHttp; 147 148 try 149 { 150 // Firefox, Opera 8.0+, Safari 151 xmlHttp=new XMLHttpRequest(); 152 } 153 catch (e) 154 { 155 // Internet Explorer 156 try 157 { 158 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 159 } 160 catch (e) 161 { 162 try 163 { 164 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 165 } 166 catch (e) 167 { 168 alert("Your browser does not support AJAX!"); 169 return false; 170 } 171 } 172 } 173 xmlHttp.onreadystatechange=function() 174 { 175 if(xmlHttp.readyState==4) 176 { 177 } 178 } 179 var url = "{/literal}{$smarty.const.SITE_URL}{literal}update_session.php"; 180 181 xmlHttp.open("POST", url, false); 182 xmlHttp.setRequestHeader( 183 'Content-Type', 184 'application/x-www-form-urlencoded; charset=UTF-8' 185 ); 186 xmlHttp.send('url='+window.location); 187 } 188 </script> 189 190 {/literal} 191 </script> 192 193 {* Error and confirmation messages *} 194 {include file="../$core_templates/messages.tpl"} 195 196 {if $inplace_arterror neq ''} 197 <script type="text/javascript"> 198 {literal} 199 jQuery(function($) { /* some code that uses $ */ 200 $(document).ready(function(){ tb_show("Edit Article", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editart.php?ID={/literal}{$smarty.session.editart.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 201 }); 202 {/literal} 203 </script> 204 {/if} 205 206 207 {if $inplace_caterror neq ''} 208 <script type="text/javascript"> 209 {literal} 210 jQuery(function($) { /* some code that uses $ */ 211 $(document).ready(function(){ tb_show("Edit Category", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editcat.php?ID={/literal}{$smarty.session.editcat.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 212 }); 213 {/literal} 214 </script> 215 {/if} 216 217 {if $inplace_pageerror neq ''} 218 <script type="text/javascript"> 219 {literal} 220 jQuery(function($) { /* some code that uses $ */ 221 $(document).ready(function(){ tb_show("Edit Page", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editpage.php?ID={/literal}{$smarty.session.editpage.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 222 }); 223 {/literal} 224 </script> 225 {/if} 226 227 {include file="validation.tpl" form_id="login_form" validators=$login_validators} 228 {include file="validation.tpl" form_id="search_form" validators=$search_validators} 229 230 <div class="header" style="height: auto; background: transparent;"> 231 <div class="center" style="background: transparent;" > 232 233 <div id="panel" style="z-index: -1;" align="center"> 234 <form method="post" action="{$smarty.const.DOC_ROOT}/login.php" onsubmit="ajaxFunction();" class="cmxform" id="login_form"> 235 <table border="0" align="center" width="40%" style="padding-top: 10px; padding-bottom: 10px; z-index: -1; height: 0px" id="panel_table" > 236 <tr> 237 {if $failed} 238 <td colspan="5" class="err">{l}Invalid username or password.{/l}</td> 239 {/if} 240 {if $no_permission} 241 <td colspan="5" class="err">{l}No permissions set for this user.{/l}</td> 242 {/if} 243 </tr> 244 <tr> 245 <td>{l}User{/l}:</td> 246 <td> 247 <input type="text" name="user" value="{$user}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 248 </td> 249 <td>{l}Password{/l}:</td> 250 <td> 251 <input type="password" name="pass" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 252 </td> 253 <td><input type="submit" name="login" value="Login" class="btn" /></td> 254 </tr> 255 <tr> 256 <td colspan="5" style="text-align: left;"> 257 <input type="checkbox" name="rememberMe">&nbsp;&nbsp; Keep me logged in. 258 </td> 259 </tr> 260 <tr> 261 <td colspan="5" style="text-align: right;"> 262 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register{/l}">{l}Register{/l}</a> 263 &nbsp;|&nbsp; 264 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=sendpassword" title="{l}Recover your password{/l}">{l}I forgot my password{/l}</a> 265 </td> 266 </tr> 267 </table> 268 <input type="hidden" name="formSubmitted" value="1" /> 269 </form> 270 </div> 271 {if ($smarty.const.REQUIRE_REGISTERED_USER == 1 || $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1)} 272 <p class="slide" style="z-idex: 100; margin-top: 0px;" id="slide" > 273 {if empty($regular_user_details)} 274 {if $scriptname != "profile" } <a href="" class="btn-slide" onclick="show_panel(); return false;">{else}<a href="{$smarty.const.DOC_ROOT}/login.php" class="btn-slide">{/if}{l}Login{/l}</a> 275 &nbsp;|&nbsp; 276 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Register{/l}</a> 277 {else} 278 {l}Welcome:{/l} <strong>{$regular_user_details.NAME|escape}</strong> [<a href="{$smarty.const.DOC_ROOT}/logout.php" title="{l}Log out of this account{/l}">{l}Sign Out{/l}</a>, <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=logged" title="{l}Edit your account settings{/l}">{l}My Account{/l}</a>] 279 {/if} 280 </p> 281 {/if} 282 </div> 283 </div> 284 <div style="clear: both;"></div> 285 <div class="header"> 286 <div class="center"> 287 <div class="headerLogo"> 288 <a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/logo.gif" border="0" alt="logo" /></a> 289 </div> 290 <form class="headerSearch" action="{$smarty.const.DOC_ROOT}/index.php" method="get" id="search_form"> 291 <table> 292 <tr> 293 <td> 294 <label class="searchLabel">{l}Search{/l}:</label> 295 <input class="searchInput" type="text" name="search" maxlength="250" value="{if !empty($search)}{$search|escape}{/if}" /> 296 </td> 297 <td> 298 <div class="searchBtn"> 299 <div class="searchBtnLeft"></div> 300 <button class="searchBtnCenter" type="submit">{l}GO{/l}</button> 301 <div class="searchBtnRight"></div> 302 </div> 303 </td> 304 </tr> 305 </table> 306 </form> 307 308 </div> 309 </div> 310 311 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 {* Document/Browser title *} 5 <title>{if empty ($tdescription)}{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if}{$smarty.capture.title|strip|trim}{/if} {$tdescription} </title> 6 {* Document character set *} 7 <meta http-equiv="Content-Type" content="text/html; charset={$smarty.const.CHARSET}" /> 8 9 {* CSS Style file *} 10 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/main.css" /> 11 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/fileuploader.css" /> 12 13 {* Custom META tags *} 14 {if $smarty.const.ENABLE_META_TAGS} 15 {if !empty($MetaKeywords)} 16 <meta name="keywords" content="{$MetaKeywords|strip|escape|trim}" /> 17 {/if} 18 {if !empty($MetaDescription)} 19 <meta name="description" content="{$MetaDescription|strip|escape|trim}" /> 20 {/if} 21 {if !empty($MetaAuthor)} 22 <meta name="author" content="{$MetaAuthor}" /> 23 {/if} 24 {if !empty($MetaCopyright)} 25 <meta name="copyright" content="{$MetaCopyright|strip|escape|trim}" /> 26 {/if} 27 {if !empty($MetaRobots)} 28 <meta name="robots" content="{$MetaRobots|strip|escape|trim}" /> 29 {/if} 30 {/if} 31 32 {* Please keep this line for better version tracking *} 33 <meta name="generator" content="PHP Link Directory {$smarty.const.CURRENT_VERSION}" /> 34 35 {* Live Bookmarks *} 36 {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID gt 0 or $list) and count($links) gt 0} 37 <link rel="alternate" type="application/rss+xml" title="{$in_page_title|escape|trim}" href="{$smarty.const.SITE_URL}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $p > 1}p={$p}{elseif $list}list={$list}{else}c={$category.ID}{/if}" /> 38 {/if} 39 40 {* JavaScript libraries *} 41 {if $load_Javascript} 42 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery-1.3.2.min.js"></script> 43 <script src="{$smarty.const.DOC_ROOT}/javascripts/ajaxupload.js" type="text/javascript"></script> 44 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery-ui-1.7.2.custom.min.js"></script> 45 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery.validate.js"></script> 46 47 48 {if $is_detail} 49 50 <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/jcarousel.css" /> 51 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery.jcarousel.min.js"></script> 52 53 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/flowplayer-3.2.6.min.js"></script> 54 {/if} 55 56 <script type="text/javascript"> 57 {literal}jQuery.noConflict();{/literal} 58 </script> 59 60 {*<script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery.dimensions.js"></script> 61 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/ui/ui.core.js"></script> 62 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/ui/ui.draggable.js"></script> 63 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/ui/ui.droppable.js"></script> 64 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/ui/ui.sortable.js"></script>*} 65 66 {* SmartyFormtool for manipulating forms with JavaScript *} 67 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/formtool/formtool.js"></script> 68 69 {* Prototype library *} 70 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/prototype/prototype.js"></script> 71 {* Scriptaculous - Incredible effects and controls library built on Prototype *} 72 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/scriptaculous/scriptaculous.js"></script> 73 74 {* AJAX category selection library *} 75 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/thickbox/thickbox.js"></script> 76 <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/javascripts/thickbox/ThickBox.css" type="text/css" media="screen" /> 77 78 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script> 79 <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/javascripts/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> 80 81 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/categ_selection/categ_selection.js"></script> 82 83 {elseif $uLevel eq 1} 84 {* Load JavaScript libraries for widgets sorting *} 85 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery-1.3.2.min.js"></script> 86 <script src="{$smarty.const.DOC_ROOT}/javascripts/jquery/jquery-ui-1.7.2.custom.min.js"></script> 87 {/if} 88 89 {literal} 90 <script type="text/javascript"> 91 var valid_obj = new Object(); 92 </script> 93 {/literal} 94 95 </head> 96 {if $scriptname == "detail" & !empty($link_data.ADDRESS)} 97 <body onload="load()" onunload="GUnload()"> 98 {else} 99 <body> 100 {/if} 101 <script type="text/javascript"> 102 {literal} 103 104 function increase_height() { 105 height = parseInt(document.getElementById('slide').style.marginTop); 106 if (height<110) { 107 document.getElementById('slide').style.marginTop = eval(height+2)+"px"; 108 setTimeout("increase_height()",0.0001); 109 } else { 110 document.getElementById('panel').style.zIndex = 200; 111 } 112 } 113 114 function decrease_height() { 115 height = parseInt(document.getElementById('slide').style.marginTop); 116 document.getElementById('panel').style.zIndex = -1; 117 if (height>0) { 118 document.getElementById('slide').style.marginTop = eval(height-2)+"px"; 119 setTimeout("decrease_height()",0.0001); 120 } 121 } 122 123 function show_panel() { 124 125 height = parseInt(document.getElementById('slide').style.marginTop); 126 if (height>0) { 127 decrease_height(); 128 } else { 129 increase_height(); 130 } 131 return false; 132 } 133 134 function ajaxFunction() 135 { 136 137 var xmlHttp; 138 139 try 140 { 141 // Firefox, Opera 8.0+, Safari 142 xmlHttp=new XMLHttpRequest(); 143 } 144 catch (e) 145 { 146 // Internet Explorer 147 try 148 { 149 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 150 } 151 catch (e) 152 { 153 try 154 { 155 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 156 } 157 catch (e) 158 { 159 alert("Your browser does not support AJAX!"); 160 return false; 161 } 162 } 163 } 164 xmlHttp.onreadystatechange=function() 165 { 166 if(xmlHttp.readyState==4) 167 { 168 } 169 } 170 var url = "{/literal}{$smarty.const.SITE_URL}{literal}update_session.php"; 171 172 xmlHttp.open("POST", url, false); 173 xmlHttp.setRequestHeader( 174 'Content-Type', 175 'application/x-www-form-urlencoded; charset=UTF-8' 176 ); 177 xmlHttp.send('url='+window.location); 178 } 179 </script> 180 181 {/literal} 182 </script> 183 184 {* Error and confirmation messages *} 185 {include file="../$core_templates/messages.tpl"} 186 187 {if $inplace_arterror neq ''} 188 <script type="text/javascript"> 189 {literal} 190 jQuery(function($) { /* some code that uses $ */ 191 $(document).ready(function(){ tb_show("Edit Article", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editart.php?ID={/literal}{$smarty.session.editart.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 192 }); 193 {/literal} 194 </script> 195 {/if} 196 197 198 {if $inplace_caterror neq ''} 199 <script type="text/javascript"> 200 {literal} 201 jQuery(function($) { /* some code that uses $ */ 202 $(document).ready(function(){ tb_show("Edit Category", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editcat.php?ID={/literal}{$smarty.session.editcat.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 203 }); 204 {/literal} 205 </script> 206 {/if} 207 208 {if $inplace_pageerror neq ''} 209 <script type="text/javascript"> 210 {literal} 211 jQuery(function($) { /* some code that uses $ */ 212 $(document).ready(function(){ tb_show("Edit Page", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editpage.php?ID={/literal}{$smarty.session.editpage.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); }); 213 }); 214 {/literal} 215 </script> 216 {/if} 217 218 {include file="validation.tpl" form_id="login_form" validators=$login_validators} 219 {include file="validation.tpl" form_id="search_form" validators=$search_validators} 220 221 <div class="header" style="height: auto; background: transparent;"> 222 <div class="center" style="background: transparent;" > 223 224 <div id="panel" style="z-index: -1;" align="center"> 225 <form method="post" action="{$smarty.const.DOC_ROOT}/login.php" onsubmit="ajaxFunction();" class="cmxform" id="login_form"> 226 <table border="0" align="center" width="40%" style="padding-top: 10px; padding-bottom: 10px; z-index: -1; height: 0px" id="panel_table" > 227 <tr> 228 {if $failed} 229 <td colspan="5" class="err">{l}Invalid username or password.{/l}</td> 230 {/if} 231 {if $no_permission} 232 <td colspan="5" class="err">{l}No permissions set for this user.{/l}</td> 233 {/if} 234 </tr> 235 <tr> 236 <td>{l}User{/l}:</td> 237 <td> 238 <input type="text" name="user" value="{$user}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" /> 239 </td> 240 <td>{l}Password{/l}:</td> 241 <td> 242 <input type="password" name="pass" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" /> 243 </td> 244 <td><input type="submit" name="login" value="Login" class="btn" /></td> 245 </tr> 246 <tr> 247 <td colspan="5" style="text-align: left;"> 248 <input type="checkbox" name="rememberMe">&nbsp;&nbsp; Keep me logged in. 249 </td> 250 </tr> 251 <tr> 252 <td colspan="5" style="text-align: right;"> 253 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register{/l}">{l}Register{/l}</a> 254 &nbsp;|&nbsp; 255 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=sendpassword" title="{l}Recover your password{/l}">{l}I forgot my password{/l}</a> 256 </td> 257 </tr> 258 </table> 259 <input type="hidden" name="formSubmitted" value="1" /> 260 </form> 261 </div> 262 {if ($smarty.const.REQUIRE_REGISTERED_USER == 1 || $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1)} 263 <p class="slide" style="z-idex: 100; margin-top: 0px;" id="slide" > 264 {if empty($regular_user_details)} 265 {if $scriptname != "profile" } <a href="" class="btn-slide" onclick="show_panel(); return false;">{else}<a href="{$smarty.const.DOC_ROOT}/login.php" class="btn-slide">{/if}{l}Login{/l}</a> 266 &nbsp;|&nbsp; 267 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Register{/l}</a> 268 {else} 269 {l}Welcome:{/l} <strong>{$regular_user_details.NAME|escape}</strong> [<a href="{$smarty.const.DOC_ROOT}/logout.php" title="{l}Log out of this account{/l}">{l}Sign Out{/l}</a>, <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=logged" title="{l}Edit your account settings{/l}">{l}My Account{/l}</a>] 270 {/if} 271 </p> 272 {/if} 273 </div> 274 </div> 275 <div style="clear: both;"></div> 276 <div class="header"> 277 <div class="center"> 278 <div class="headerLogo"> 279 <a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/logo.gif" border="0" alt="logo" /></a> 280 </div> 281 <form class="headerSearch" action="{$smarty.const.DOC_ROOT}/index.php" method="get" id="search_form"> 282 <table> 283 <tr> 284 <td> 285 <label class="searchLabel">{l}Search{/l}:</label> 286 <input class="searchInput" type="text" name="search" maxlength="250" value="{if !empty($search)}{$search|escape}{/if}" /> 287 </td> 288 <td> 289 <div class="searchBtn"> 290 <div class="searchBtnLeft"></div> 291 <button class="searchBtnCenter" type="submit">{l}GO{/l}</button> 292 <div class="searchBtnRight"></div> 293 </div> 294 </td> 295 </tr> 296 </table> 297 </form> 298 299 </div> 300 </div> 301 302
Legend: | Added(11,5) | Deleted(0,25) | Changed(31) | Changed in changed(8)