C:\wamp\www\phpld42 with cron count\PhpLD\templates\Professional\detail.tpl | C:\wamp\www\phpld42\PhpLD\templates\Professional\detail.tpl
1 {capture name="title"}{$link_data.TITLE|escape|trim} - {l}Details{/l} -{$CAT_TREE|regex_replace:"/.$/":""}{/capture} 2 {capture assign="in_page_title"}{$TITLE|escape|trim} - {l}Details{/l}{/capture} 3 {capture assign="description"}{l}Link Details{/l}{/capture} 4 5 {include file="header.tpl"} 6 {include file="top_bar.tpl"} 7 8 {strip} 9 10 {if $error} 11 <div class="err"> 12 <img src="admin/images/no_22.gif" align="baseline" alt="Error" title="Error" /> 13 <p>{l}Error{/l}: {$error}</p> 14 </div> 15 {else} 16 17 <script type="text/javascript"> 18 {literal} 19 jQuery(document).ready(function() { 20 jQuery('#mycarousel').jcarousel({ 21 visible: 4 22 }); 23 jQuery("a.image_list").fancybox(); 24 }); 25 {/literal} 26 </script> 27 28 {foreach from=$widgets.LINK_DETAIL.TOP item=v} 29 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 30 {include file="widget_central_top.tpl"} 31 {/if} 32 {$v.CONTENT} 33 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 34 {include file="widget_central_bot.tpl"} 35 {/if} 36 {/foreach} 37 38 <table border="0" width="528px" style="width:528px;"> 39 <tr> 40 <td class="label" style="padding-top: 25px;">{l}ID{/l}:</td> 41 <td class="smallDesc" align="left" style="padding-top: 25px;"><b>{$link_data.ID}</b></td> 42 </tr> 43 44 {foreach from=$submit_items item=item name=submit_items} 45 {if $item.IS_DETAIL eq '1' && (!empty($link_data[$item.FIELD_NAME]) || $item.TYPE == 'BOOL')} 46 {if $item.FIELD_NAME eq 'DESCRIPTION'} 47 <tr> 48 <td class="label">{l}{$item.NAME}{/l}:</td> 49 <td class="smallDesc" align="left" id="editdescrip_{$link_data.ID}">{$link_data.DESCRIPTION|trim}</td> 50 </tr> 51 {elseif $item.FIELD_NAME eq 'TITLE'} 52 <tr> 53 <td class="label">{l}{$item.NAME}{/l}:</td> 54 <td class="smallDesc" align="left"> 55 <span class="link" id="edittitle"> 56 {if !empty($link_data.URL)} 57 <a id="id_{$link_data.ID}" href="{$link_data.URL|escape|trim}" title="{$link_data.TITLE|escape|trim}" 58 {if $link_data.NOFOLLOW or ($link_data.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link_data.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if} 59 {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>{/if} 60 {$link_data.TITLE|escape|trim} 61 {if !empty($link_data.URL)}</a>{/if}</span> 62 </td> 63 </tr> 64 {elseif $item.FIELD_NAME eq 'CATEGORY_ID'} 65 <tr> 66 <td class="label">{if $link_data.ADD_CATEGS}{l}Categories{/l}{else}{l}Category{/l}{/if}:</td> 67 <td class="smallDesc" align="left"> 68 <a href="{$link_data.CATEGORY_URL|escape|trim}" title="{$link_data.CATEGORY_TITLE|escape|trim}">{$link_data.CACHE_TITLE|escape|trim}</a> 69 {if $link_data.ADD_CATEGS} 70 {foreach from=$link_data.ADD_CATEGS item=add_categ name=add_categs} 71 <br/> 72 <a href="{$add_categ.CATEGORY_URL|escape|trim}" title="{$add_categ.CATEGORY_TITLE|escape|trim}">{$add_categ.CACHE_TITLE|escape|trim}</a> 73 {/foreach} 74 {/if} 75 76 </td> 77 </tr> 78 {elseif $item.TYPE eq 'IMAGE'} 79 <tr> 80 <td class="label">{l}{$item.NAME}{/l}:</td> 81 <td class="smallDesc" align="left"> 82 <a href="{$smarty.const.SITE_URL}uploads/{$link_data[$item.FIELD_NAME]}?detail=1&TB_iframe=true&height=400&width=400" onclick="return showThickbox(this);" class="thickbox"> 83 <img src="{$smarty.const.SITE_URL}uploads/thumb/{$link_data[$item.FIELD_NAME]}"/> 84 </a> 85 </td> 86 </tr> 87 {elseif $item.TYPE eq 'VIDEO'} 88 <tr> 89 <td style="text-align: center" colspan="2"> 90 91 <!-- <object type="application/x-shockwave-flash" data="player_flv_maxi.swf" width="352" height="288"> 92 <param name="movie" value="player_flv_maxi.swf" /> 93 <param name="FlashVars" value="flv=uploads/{$link_data[$item.FIELD_NAME]}&showfullscreen=1&autoplay=1&showstop=1&showvolume=1&showtime=1" /> 94 </object> --> 95 96 <!-- this A tag is where your Flowplayer will be placed. it can be anywhere --> 97 <a href="{$smarty.const.SITE_URL}uploads/{$link_data[$item.FIELD_NAME]}" 98 style="display:block;width:520px;height:330px" 99 id="player"> </a> 100 101 <!-- this will install flowplayer inside previous A- tag. --> 102 <script> 103 flowplayer("player", "{$smarty.const.SITE_URL}flowplayer-3.2.7.swf",{literal} { 104 clip: { 105 autoPlay: false, 106 autoBuffering: true 107 } 108 });{/literal} </script> 109 </td> 110 </tr> 111 {elseif $item.TYPE eq 'IMAGEGROUP' } 112 {if !empty($group_image_details)} 113 <tr> 114 <td class="smallDesc" align="left" colspan="2"> 115 116 <ul id="mycarousel" class="jcarousel-skin-tango"> 117 {foreach from=$group_image_details item=group_image name=group_images} 118 <li> 119 <a href="{$smarty.const.DOC_ROOT}/uploads/{$group_image.IMAGE}" class="image_list" rel="image_list" > 120 <img src="{$smarty.const.DOC_ROOT}/uploads/thumb/{$group_image.IMAGE}" border="0" style="border: 1px dotted grey;width:100px;" /> 121 </a> 122 </li> 123 {/foreach} 124 </ul> 125 </td> 126 </tr> 127 {/if} 128 {elseif $item.TYPE eq 'FILE'} 129 <tr> 130 <td class="label">{l}{$item.NAME}{/l}:</td> 131 <td class="smallDesc" align="left"> 132 <a href="{$smarty.const.DOC_ROOT}/uploads/{$link_data[$item.FIELD_NAME]}" target="_blank">{$link_data[$item.FIELD_NAME]}</a> 133 </td> 134 </tr> 135 {else} 136 {if $item.FIELD_NAME eq 'ADDRESS'} 137 {assign var="map" value=1} 138 {/if} 139 <tr> 140 <td class="label" >{l}{$item.NAME}{/l}:</td> 141 142 <td class="smallDesc" align="left" colspan="2"> 143 {if $item.TYPE == 'BOOL'} 144 {if $link_data[$item.FIELD_NAME]|escape|trim == 1}{l}yes{/l}{else}{l}no{/l}{/if} 145 {else} 146 {$link_data[$item.FIELD_NAME]|trim} 147 {/if} 148 </td> 149 </tr> 150 {/if} 151 {/if} 152 {/foreach} 153 154 {if $link_data.ADD_LINKS} 155 <tr> 156 <td class="label">{l}Deep Links{/l}:</td> 157 <td class="smallDesc" align="left"> 158 {foreach from=$link_data.ADD_LINKS item=add_link name=add_links} 159 <a href="{$add_link.URL}" target="_blank" title="{$add_link.TITLE}">{$add_link.TITLE}</a>{if !$smarty.foreach.add_links.last}, {/if} 160 {/foreach} 161 </td> 162 </tr> 163 {/if} 164 165 {if $smarty.const.SHOW_PAGERANK} 166 <tr> 167 <td class="label">{l}Pagerank{/l}:</td> 168 <td class="smallDesc" align="left">{if $link_data.PAGERANK ge 0}{$link_data.PAGERANK}{else}N/A{/if}</td> 169 </tr> 170 {/if} 171 172 {if $smarty.const.GMAP_ENABLE && $map eq 1} 173 <tr> 174 <td class="smallDesc" align="left" colspan="2"> 175 {literal} 176 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> 177 </script> 178 <script type="text/javascript"> 179 var geocoder; 180 var map; 181 function load() { 182 geocoder = new google.maps.Geocoder(); 183 {/literal} 184 var address = '{$link_data.ADDRESS|replace:"'":"\\'"},{$link_data.CITY},{$link_data.STATE}'; 185 {literal} 186 geocoder.geocode( { 'address': address}, function(results, status) { 187 if (status == google.maps.GeocoderStatus.OK) { 188 map.setCenter(results[0].geometry.location); 189 var marker = new google.maps.Marker({ 190 map: map, 191 192 position: results[0].geometry.location, 193 title:"{/literal}{$link_data.TITLE}{literal}" 194 }); 195 196 {/literal} 197 contentString = '{if $link_data.IMAGE}<img display="block" src="{$smarty.const.SITE_URL}uploads/thumb/{$link_data.IMAGE}"/><br />{/if}<b>{$link_data.TITLE} <br>{$link_data.ADDRESS}{if $link_data.CITY != ""}<br> {$link_data.CITY}{/if}{if $link_data.STATE != ""}<br> {$link_data.STATE}{/if}{if $link_data.ZIP != ""}<br> {$link_data.ZIP}{/if}{if $link_data.PHONE_NUMBER != ""}<br> {$link_data.PHONE_NUMBER}{/if}</b>'; 198 {literal} 199 200 var infowindow = new google.maps.InfoWindow({ 201 content: contentString 202 203 }); 204 205 infowindow.open(map,marker); 206 map.panBy(10,-80); 207 208 } else { 209 alert("Geocode was not successful for the following reason: " + status); 210 } 211 }); 212 213 var myOptions = { 214 zoom: 16, 215 mapTypeId: google.maps.MapTypeId.ROADMAP 216 } 217 map = new google.maps.Map(document.getElementById("map"), myOptions); 218 219 } 220 221 //]]> 222 </script> 223 224 {/literal} 225 <div id="map" style="margin:0px auto; width: 400px; height: 300px;"></div><br/><br/> 226 </div> 227 </td> 228 </tr> 229 {/if} 230 231 <tr> 232 <td colspan="2"> 233 <div style="float: right;"> 234 {if $rights.editLink eq 1} 235 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&detail=1&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox"> 236 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit link"/> 237 </a> 238 {/if} 239 {if $rights.delLink eq 1} 240 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&mode=del&detail=1&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to delete this link?');if (question !='0'){return showThickbox(this);} else return false;{/literal}" > 241 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete link"/> 242 </a> 243 {/if} 244 {if $STATUS<2 && $rights.editLink eq 1} 245 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&mode=active&detail=1&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to make this link active?');if (question !='0'){return showThickbox(this);} else return false;{/literal}"> 246 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/active.gif" width="14" height="14" style="border: none;" alt="link is inactive" class="float_tiny"/> 247 {/if} 248 {if $rights.editLink eq 1 || $rights.delLink eq 1} 249 {if $has_payment > 0} 250 <div class="float_tiny" style="color: green; font-weight: bold">$</div> 251 {/if} 252 {/if} 253 </div> 254 </td> 255 </tr> 256 {if $tell_friend_on == 1} 257 <tr> 258 <td align="center" colspan="2"> 259 <a href="{$smarty.const.DOC_ROOT}/tell_friend.php?lid={$link_data.ID}">{l}Tell a friend{/l}</a> 260 </td> 261 </tr> 262 {/if} 263 {if $uLevel eq 1} 264 <tr> 265 <td align="center" colspan="2"> 266 <a href="{$smarty.const.DOC_ROOT}/admin/dir_links_edit.php?action=E:{$link_data.ID}" target="blank" title="Edit as Admin">Edit as Admin</a> 267 </td> 268 </tr> 269 {/if} 270 271 272 {if $ratings_on == 1} 273 <tr> 274 <td colspan="2"> 275 <fieldset> 276 <legend>{l}Ratings{/l}</legend> 277 {if $logged_rating eq 1} 278 {if $ratingError}<div class="errForm">{l}Please choose your rating, and after this click Rate{/l}.</div>{/if} 279 <label for="RATING">{l}Rate the link{/l}: &nbsp;</a> 280 <form name="rating" action="{$smarty.const.DOC_ROOT}/detail.php?action=R:{$link_data.ID}" method="post"> 281 <select id="RATING" name="RATING" class="text" {$rating_disabled}> 282 <option value=""></option> 283 <option value="1">1</option> 284 <option value="2">2</option> 285 <option value="3">3</option> 286 <option value="4">4</option> 287 <option value="5">5</option> 288 <option value="6">6</option> 289 <option value="7">7</option> 290 <option value="8">8</option> 291 <option value="9">9</option> 292 <option value="10">10</option> 293 </select> 294 &nbsp;<input type="submit" value="{l}Rate{/l}" class="btn" {$rating_disabled}> 295 </form> 296 &nbsp;&nbsp; 297 {else} 298 <center><a href="{$smarty.const.DOC_ROOT}/login.php" class="error">{l}You must be logged in to leave a rating{/l}.</a><br> 299 {/if} 300 <b>{l}Average rating{/l}:</b> 301 {if $smarty.const.LINK_RATING_DISPLAY == 'image'} 302 {if $link_data.RATING >0 } 303 {section name=foo loop=$link_data.RATING} 304 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star.gif"> 305 {/section} 306 {if intval($link_data.RATING) < $link_data.RATING} 307 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star_half.gif"> 308 {/if} 309 {/if} 310 {elseif $smarty.const.LINK_RATING_DISPLAY == 'bar'} 311 {if $link_data.RATING >0 } 312 {section name=foo loop=$link_data.RATING} 313 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_full.png"> 314 {/section} 315 {if intval($link_data.RATING) < $link_data.RATING} 316 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_full_half.png"> 317 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_empty_half.png"> 318 {/if} 319 {section name=foo loop=$link_data.LEFT_RATING} 320 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_empty.png"> 321 {/section} 322 {/if} 323 {else} 324 {$link_data.RATING} 325 {/if} ({if !$link_data.VOTES}0{else}{$link_data.VOTES}{/if} {l}votes{/l}) 326 </fieldset> 327 </td> 328 </tr> 329 {/if} 330 331 {if $comments_on == 1} 332 <tr> 333 <td colspan="2"> 334 <fieldset> 335 <legend>{l}Reviews{/l}</legend> 336 {* Printing Comments *} 337 {foreach from=$comments item=comment name=items} 338 <table class="comment" cellspacing="0" cellpadding="0" width="100%"> 339 <tr class="comment"> 340 <td>{$comment.USER_NAME}:</td> 341 <td align="right">{$comment.DATE_ADDED}</td> 342 </tr> 343 <tr height="50" valign="top"> 344 <td class="descr" colspan="2">{$comment.COMMENT|nl2br}</td> 345 </tr> 346 </table> 347 {foreachelse} 348 <h3>{l}No Reviews Yet{/l}.</h3> 349 {/foreach} 350 {if $comm_posted eq 1 && $needs_approval_msg eq 1 } 351 <p style="color: green">{l}Comment posted and awaiting admin approval{/l}.</p> 352 {elseif $comm_posted eq 1} 353 <p style="color: green">{l}Comment posted{/l}.</p> 354 {/if} 355 {if $logged_comment eq 1} 356 <br> 357 <form id="commentForm" action="{$smarty.const.DOC_ROOT}/detail.php?action=C:{$link_data.ID}" method="post"> 358 <table width="100%" cellspacing="0" cellpadding="0"> 359 <tr> 360 <td colspan="2"> 361 <label for="comment"><b>{l}Leave your comment{/l}:</b><br> 362 <textarea id="comment" name="comment" rows="4" cols="60" class="text">{$COMMENT}</textarea> 363 {if $commentError}<div class="errForm">{l}You need to enter comment before Submit{/l}.</div>{/if} 364 365 </td> 366 </tr> 367 <tr> 368 <td colspan="2"> 369 {if $smarty.const.VISUAL_CONFIRM_LINK_COMMENTS eq 1 && $smarty.const.VISUAL_CONFIRM eq 1} 370 {if $rights.editLink neq 1 && $rights.addLink neq 1 && $rights.delLink neq 1} 371 {if $img_verification_error} 372 <span class="error"><font color=red>{l}Verification error, please enter the code again{/l}</font></span><br> 373 {/if} 374 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 375 <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}" /> 376 <br><br><span class='req'>*</span>{l}Enter the code shown{/l}: 377 &nbsp;<input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /><br><br> 378 {/if} 379 {/if} 380 {if $smarty.const.VISUAL_CONFIRM_LINK_COMMENTS eq 1 && $smarty.const.VISUAL_CONFIRM eq 2} 381 <span style="color: red;"> 382 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 383 {if $errorKey == 'DO_MATH'} 384 {if is_array($errorItem)} 385 {$errorItem.remote}<br/> 386 {else} 387 {$errorItem}<br/> 388 {/if} 389 {/if} 390 {/foreach} 391 </span> 392 <span class='req'>*</span>{l}Do the Math{/l}: 393 &nbsp; <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;"/> 394 <br/> 395 <br/> 396 397 {/if} 398 <input type="hidden" name="formSubmitted" value="1" /> 399 <input type="submit" value="{l}Submit{/l}" class="btn"> 400 </td> 401 </tr> 402 </table> 403 </form> 404 {else} 405 <br><a href="{$smarty.const.DOC_ROOT}/login.php" class="error">{l}You must be logged in to leave a Comment{/l}.</a><br> 406 {/if} 407 </fieldset> 408 </td> 409 </tr> 410 {/if} 411 <tr> 412 <td colspan="2">&nbsp;</td> 413 </tr> 414 </table> 415 416 {* Javascript for tracking link clicks *} 417 <script type="text/javascript"> 418 /* <![CDATA[ */ 419 var root = '{$smarty.const.DOC_ROOT}'; 420 {literal} 421 var a = document.getElementsByTagName("a"); 422 for(i = 0; i< a.length; i++) 423 if(a[i].id != '') 424 a[i].onclick = count_link; 425 function count_link() { 426 i = new Image(); 427 i.src= root+'/cl.php?id='+this.id; 428 return true; 429 } 430 431 {/literal} 432 /* ]]> */ 433 </script> 434 {foreach from=$widgets.LINK_DETAIL.BOT item=v} 435 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 436 {include file="widget_central_top.tpl"} 437 {/if} 438 {$v.CONTENT} 439 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 440 {include file="widget_central_bot.tpl"} 441 {/if} 442 {/foreach} 443 {/if} 444 {/strip} 445 {include file="footer.tpl"} 446 | 1 {capture name="title"}{$link_data.TITLE|escape|trim} - {l}Details{/l} -{$CAT_TREE|regex_replace:"/.$/":""}{/capture} 2 {capture assign="in_page_title"}{$TITLE|escape|trim} - {l}Details{/l}{/capture} 3 {capture assign="description"}{l}Link Details{/l}{/capture} 4 5 {include file="header.tpl"} 6 {include file="top_bar.tpl"} 7 8 {strip} 9 10 {if $error} 11 <div class="err"> 12 <img src="admin/images/no_22.gif" align="baseline" alt="Error" title="Error" /> 13 <p>{l}Error{/l}: {$error}</p> 14 </div> 15 {else} 16 17 <script type="text/javascript"> 18 {literal} 19 jQuery(document).ready(function() { 20 jQuery('#mycarousel').jcarousel({ 21 visible: 4 22 }); 23 jQuery("a.image_list").fancybox(); 24 }); 25 {/literal} 26 </script> 27 28 {foreach from=$widgets.LINK_DETAIL.TOP item=v} 29 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 30 {include file="widget_central_top.tpl"} 31 {/if} 32 {$v.CONTENT} 33 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 34 {include file="widget_central_bot.tpl"} 35 {/if} 36 {/foreach} 37 38 <table border="0" width="528px" style="width:528px;"> 39 <tr> 40 <td class="label" style="padding-top: 25px;">{l}ID{/l}:</td> 41 <td class="smallDesc" align="left" style="padding-top: 25px;"><b>{$link_data.ID}</b></td> 42 </tr> 43 44 {foreach from=$submit_items item=item name=submit_items} 45 {if $item.IS_DETAIL eq '1' && (!empty($link_data[$item.FIELD_NAME]) || $item.TYPE == 'BOOL')} 46 {if $item.FIELD_NAME eq 'DESCRIPTION'} 47 <tr> 48 <td class="label">{l}{$item.NAME}{/l}:</td> 49 <td class="smallDesc" align="left" id="editdescrip_{$link_data.ID}">{$link_data.DESCRIPTION|trim}</td> 50 </tr> 51 {elseif $item.FIELD_NAME eq 'TITLE'} 52 <tr> 53 <td class="label">{l}{$item.NAME}{/l}:</td> 54 <td class="smallDesc" align="left"> 55 <span class="link" id="edittitle"> 56 {if !empty($link_data.URL)} 57 <a id="id_{$link_data.ID}" href="{$link_data.URL|escape|trim}" title="{$link_data.TITLE|escape|trim}" 58 {if $link_data.NOFOLLOW or ($link_data.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link_data.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if} 59 {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>{/if} 60 {$link_data.TITLE|escape|trim} 61 {if !empty($link_data.URL)}</a>{/if}</span> 62 </td> 63 </tr> 64 {elseif $item.FIELD_NAME eq 'CATEGORY_ID'} 65 <tr> 66 <td class="label">{if $link_data.ADD_CATEGS}{l}Categories{/l}{else}{l}Category{/l}{/if}:</td> 67 <td class="smallDesc" align="left"> 68 <a href="{$link_data.CATEGORY_URL|escape|trim}" title="{$link_data.CATEGORY_TITLE|escape|trim}">{$link_data.CACHE_TITLE|escape|trim}</a> 69 {if $link_data.ADD_CATEGS} 70 {foreach from=$link_data.ADD_CATEGS item=add_categ name=add_categs} 71 <br/> 72 <a href="{$add_categ.CATEGORY_URL|escape|trim}" title="{$add_categ.CATEGORY_TITLE|escape|trim}">{$add_categ.CACHE_TITLE|escape|trim}</a> 73 {/foreach} 74 {/if} 75 76 </td> 77 </tr> 78 {elseif $item.TYPE eq 'IMAGE'} 79 <tr> 80 <td class="label">{l}{$item.NAME}{/l}:</td> 81 <td class="smallDesc" align="left"> 82 <a href="{$smarty.const.SITE_URL}uploads/{$link_data[$item.FIELD_NAME]}?detail=1&TB_iframe=true&height=400&width=400" onclick="return showThickbox(this);" class="thickbox"> 83 <img src="{$smarty.const.SITE_URL}uploads/thumb/{$link_data[$item.FIELD_NAME]}"/> 84 </a> 85 </td> 86 </tr> 87 {elseif $item.TYPE eq 'VIDEO'} 88 <tr> 89 <td style="text-align: center" colspan="2"> 90 91 <!-- <object type="application/x-shockwave-flash" data="player_flv_maxi.swf" width="352" height="288"> 92 <param name="movie" value="player_flv_maxi.swf" /> 93 <param name="FlashVars" value="flv=uploads/{$link_data[$item.FIELD_NAME]}&showfullscreen=1&autoplay=1&showstop=1&showvolume=1&showtime=1" /> 94 </object> --> 95 96 <!-- this A tag is where your Flowplayer will be placed. it can be anywhere --> 97 <a href="{$smarty.const.SITE_URL}uploads/{$link_data[$item.FIELD_NAME]}" 98 style="display:block;width:520px;height:330px" 99 id="player"> </a> 100 101 <!-- this will install flowplayer inside previous A- tag. --> 102 <script> 103 flowplayer("player", "{$smarty.const.SITE_URL}flowplayer-3.2.7.swf",{literal} { 104 clip: { 105 autoPlay: false, 106 autoBuffering: true 107 } 108 });{/literal} </script> 109 </td> 110 </tr> 111 {elseif $item.TYPE eq 'IMAGEGROUP'} 112 <tr> 113 <td class="smallDesc" align="left" colspan="2"> 114 <ul id="mycarousel" class="jcarousel-skin-tango"> 115 {foreach from=$group_image_details item=group_image name=group_images} 116 <li> 117 <a href="{$smarty.const.DOC_ROOT}/uploads/{$group_image.IMAGE}" class="image_list" rel="image_list" > 118 <img src="{$smarty.const.DOC_ROOT}/uploads/thumb/{$group_image.IMAGE}" border="0" style="border: 1px dotted grey;width:100px;" /> 119 </a> 120 </li> 121 {/foreach} 122 </ul> 123 </td> 124 </tr> 125 {elseif $item.TYPE eq 'FILE'} 126 <tr> 127 <td class="label">{l}{$item.NAME}{/l}:</td> 128 <td class="smallDesc" align="left"> 129 <a href="{$smarty.const.DOC_ROOT}/uploads/{$link_data[$item.FIELD_NAME]}" target="_blank">{$link_data[$item.FIELD_NAME]}</a> 130 </td> 131 </tr> 132 {else} 133 {if $item.FIELD_NAME eq 'ADDRESS'} 134 {assign var="map" value=1} 135 {/if} 136 <tr> 137 <td class="label" >{l}{$item.NAME}{/l}:</td> 138 139 <td class="smallDesc" align="left" colspan="2"> 140 {if $item.TYPE == 'BOOL'} 141 {if $link_data[$item.FIELD_NAME]|escape|trim == 1}{l}yes{/l}{else}{l}no{/l}{/if} 142 {else} 143 {$link_data[$item.FIELD_NAME]|trim} 144 {/if} 145 </td> 146 </tr> 147 {/if} 148 {/if} 149 {/foreach} 150 151 {if $link_data.ADD_LINKS} 152 <tr> 153 <td class="label">{l}Deep Links{/l}:</td> 154 <td class="smallDesc" align="left"> 155 {foreach from=$link_data.ADD_LINKS item=add_link name=add_links} 156 <a href="{$add_link.URL}" target="_blank" title="{$add_link.TITLE}">{$add_link.TITLE}</a>{if !$smarty.foreach.add_links.last}, {/if} 157 {/foreach} 158 </td> 159 </tr> 160 {/if} 161 162 {if $smarty.const.SHOW_PAGERANK} 163 <tr> 164 <td class="label">{l}Pagerank{/l}:</td> 165 <td class="smallDesc" align="left">{if $link_data.PAGERANK ge 0}{$link_data.PAGERANK}{else}N/A{/if}</td> 166 </tr> 167 {/if} 168 169 {if $smarty.const.GMAP_ENABLE && $map eq 1} 170 <tr> 171 <td class="smallDesc" align="left" colspan="2"> 172 {literal} 173 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> 174 </script> 175 <script type="text/javascript"> 176 var geocoder; 177 var map; 178 function load() { 179 geocoder = new google.maps.Geocoder(); 180 {/literal} 181 var address = '{$link_data.ADDRESS|replace:"'":"\\'"},{$link_data.CITY},{$link_data.STATE}'; 182 {literal} 183 geocoder.geocode( { 'address': address}, function(results, status) { 184 if (status == google.maps.GeocoderStatus.OK) { 185 map.setCenter(results[0].geometry.location); 186 var marker = new google.maps.Marker({ 187 map: map, 188 189 position: results[0].geometry.location, 190 title:"{/literal}{$link_data.TITLE}{literal}" 191 }); 192 193 {/literal} 194 contentString = '{if $link_data.IMAGE}<img display="block" src="{$smarty.const.SITE_URL}uploads/thumb/{$link_data.IMAGE}"/><br />{/if}<b>{$link_data.TITLE} <br>{$link_data.ADDRESS}{if $link_data.CITY != ""}<br> {$link_data.CITY}{/if}{if $link_data.STATE != ""}<br> {$link_data.STATE}{/if}{if $link_data.ZIP != ""}<br> {$link_data.ZIP}{/if}{if $link_data.PHONE_NUMBER != ""}<br> {$link_data.PHONE_NUMBER}{/if}</b>'; 195 {literal} 196 197 var infowindow = new google.maps.InfoWindow({ 198 content: contentString 199 200 }); 201 202 infowindow.open(map,marker); 203 map.panBy(10,-80); 204 205 } else { 206 alert("Geocode was not successful for the following reason: " + status); 207 } 208 }); 209 210 var myOptions = { 211 zoom: 16, 212 mapTypeId: google.maps.MapTypeId.ROADMAP 213 } 214 map = new google.maps.Map(document.getElementById("map"), myOptions); 215 216 } 217 218 //]]> 219 </script> 220 221 {/literal} 222 <div id="map" style="margin:0px auto; width: 400px; height: 300px;"></div><br/><br/> 223 </div> 224 </td> 225 </tr> 226 {/if} 227 228 <tr> 229 <td colspan="2"> 230 <div style="float: right;"> 231 {if $rights.editLink eq 1} 232 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&detail=1&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox"> 233 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit link"/> 234 </a> 235 {/if} 236 {if $rights.delLink eq 1} 237 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&mode=del&detail=1&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to delete this link?');if (question !='0'){return showThickbox(this);} else return false;{/literal}" > 238 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete link"/> 239 </a> 240 {/if} 241 {if $STATUS<2 && $rights.editLink eq 1} 242 <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link_data.ID}&mode=active&detail=1&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to make this link active?');if (question !='0'){return showThickbox(this);} else return false;{/literal}"> 243 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/active.gif" width="14" height="14" style="border: none;" alt="link is inactive" class="float_tiny"/> 244 {/if} 245 {if $rights.editLink eq 1 || $rights.delLink eq 1} 246 {if $has_payment > 0} 247 <div class="float_tiny" style="color: green; font-weight: bold">$</div> 248 {/if} 249 {/if} 250 </div> 251 </td> 252 </tr> 253 {if $tell_friend_on == 1} 254 <tr> 255 <td align="center" colspan="2"> 256 <a href="{$smarty.const.DOC_ROOT}/tell_friend.php?lid={$link_data.ID}">{l}Tell a friend{/l}</a> 257 </td> 258 </tr> 259 {/if} 260 {if $uLevel eq 1} 261 <tr> 262 <td align="center" colspan="2"> 263 <a href="{$smarty.const.DOC_ROOT}/admin/dir_links_edit.php?action=E:{$link_data.ID}" target="blank" title="Edit as Admin">Edit as Admin</a> 264 </td> 265 </tr> 266 {/if} 267 268 269 {if $ratings_on == 1} 270 <tr> 271 <td colspan="2"> 272 <fieldset> 273 <legend>{l}Ratings{/l}</legend> 274 {if $logged_rating eq 1} 275 {if $ratingError}<div class="errForm">{l}Please choose your rating, and after this click Rate{/l}.</div>{/if} 276 <label for="RATING">{l}Rate the link{/l}: &nbsp;</a> 277 <form name="rating" action="{$smarty.const.DOC_ROOT}/detail.php?action=R:{$link_data.ID}" method="post"> 278 <select id="RATING" name="RATING" class="text" {$rating_disabled}> 279 <option value=""></option> 280 <option value="1">1</option> 281 <option value="2">2</option> 282 <option value="3">3</option> 283 <option value="4">4</option> 284 <option value="5">5</option> 285 <option value="6">6</option> 286 <option value="7">7</option> 287 <option value="8">8</option> 288 <option value="9">9</option> 289 <option value="10">10</option> 290 </select> 291 &nbsp;<input type="submit" value="{l}Rate{/l}" class="btn" {$rating_disabled}> 292 </form> 293 &nbsp;&nbsp; 294 {else} 295 <center><a href="{$smarty.const.DOC_ROOT}/login.php" class="error">{l}You must be logged in to leave a rating{/l}.</a><br> 296 {/if} 297 <b>{l}Average rating{/l}:</b> 298 {if $smarty.const.LINK_RATING_DISPLAY == 'image'} 299 {if $link_data.RATING >0 } 300 {section name=foo loop=$link_data.RATING} 301 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star.gif"> 302 {/section} 303 {if intval($link_data.RATING) < $link_data.RATING} 304 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star_half.gif"> 305 {/if} 306 {/if} 307 {elseif $smarty.const.LINK_RATING_DISPLAY == 'bar'} 308 {if $link_data.RATING >0 } 309 {section name=foo loop=$link_data.RATING} 310 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_full.png"> 311 {/section} 312 {if intval($link_data.RATING) < $link_data.RATING} 313 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_full_half.png"> 314 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_empty_half.png"> 315 {/if} 316 {section name=foo loop=$link_data.LEFT_RATING} 317 <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/bar_empty.png"> 318 {/section} 319 {/if} 320 {else} 321 {$link_data.RATING} 322 {/if} ({if !$link_data.VOTES}0{else}{$link_data.VOTES}{/if} {l}votes{/l}) 323 </fieldset> 324 </td> 325 </tr> 326 {/if} 327 328 {if $comments_on == 1} 329 <tr> 330 <td colspan="2"> 331 <fieldset> 332 <legend>{l}Reviews{/l}</legend> 333 {* Printing Comments *} 334 {foreach from=$comments item=comment name=items} 335 <table class="comment" cellspacing="0" cellpadding="0" width="100%"> 336 <tr class="comment"> 337 <td>{$comment.USER_NAME}:</td> 338 <td align="right">{$comment.DATE_ADDED}</td> 339 </tr> 340 <tr height="50" valign="top"> 341 <td class="descr" colspan="2">{$comment.COMMENT|nl2br}</td> 342 </tr> 343 </table> 344 {foreachelse} 345 <h3>{l}No Reviews Yet{/l}.</h3> 346 {/foreach} 347 {if $comm_posted eq 1 && $needs_approval_msg eq 1 } 348 <p style="color: green">{l}Comment posted and awaiting admin approval{/l}.</p> 349 {elseif $comm_posted eq 1} 350 <p style="color: green">{l}Comment posted{/l}.</p> 351 {/if} 352 {if $logged_comment eq 1} 353 <br> 354 <form id="commentForm" action="{$smarty.const.DOC_ROOT}/detail.php?action=C:{$link_data.ID}" method="post"> 355 <table width="100%" cellspacing="0" cellpadding="0"> 356 <tr> 357 <td colspan="2"> 358 <label for="comment"><b>{l}Leave your comment{/l}:</b><br> 359 <textarea id="comment" name="comment" rows="4" cols="60" class="text">{$COMMENT}</textarea> 360 {if $commentError}<div class="errForm">{l}You need to enter comment before Submit{/l}.</div>{/if} 361 362 </td> 363 </tr> 364 <tr> 365 <td colspan="2"> 366 {if $smarty.const.VISUAL_CONFIRM_LINK_COMMENTS eq 1 && $smarty.const.VISUAL_CONFIRM eq 1} 367 {if $rights.editLink neq 1 && $rights.addLink neq 1 && $rights.delLink neq 1} 368 {if $img_verification_error} 369 <span class="error"><font color=red>{l}Verification error, please enter the code again{/l}</font></span><br> 370 {/if} 371 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" /> 372 <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}" /> 373 <br><br><span class='req'>*</span>{l}Enter the code shown{/l}: 374 &nbsp;<input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" /><br><br> 375 {/if} 376 {/if} 377 {if $smarty.const.VISUAL_CONFIRM_LINK_COMMENTS eq 1 && $smarty.const.VISUAL_CONFIRM eq 2} 378 <span style="color: red;"> 379 {foreach name=errorList from=$error_list key=errorKey item=errorItem} 380 {if $errorKey == 'DO_MATH'} 381 {if is_array($errorItem)} 382 {$errorItem.remote}<br/> 383 {else} 384 {$errorItem}<br/> 385 {/if} 386 {/if} 387 {/foreach} 388 </span> 389 <span class='req'>*</span>{l}Do the Math{/l}: 390 &nbsp; <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;"/> 391 <br/> 392 <br/> 393 394 {/if} 395 <input type="hidden" name="formSubmitted" value="1" /> 396 <input type="submit" value="{l}Submit{/l}" class="btn"> 397 </td> 398 </tr> 399 </table> 400 </form> 401 {else} 402 <br><a href="{$smarty.const.DOC_ROOT}/login.php" class="error">{l}You must be logged in to leave a Comment{/l}.</a><br> 403 {/if} 404 </fieldset> 405 </td> 406 </tr> 407 {/if} 408 <tr> 409 <td colspan="2">&nbsp;</td> 410 </tr> 411 </table> 412 413 {* Javascript for tracking link clicks *} 414 <script type="text/javascript"> 415 /* <![CDATA[ */ 416 var root = '{$smarty.const.DOC_ROOT}'; 417 {literal} 418 var a = document.getElementsByTagName("a"); 419 for(i = 0; i< a.length; i++) 420 if(a[i].id != '') 421 a[i].onclick = count_link; 422 function count_link() { 423 i = new Image(); 424 i.src= root+'/cl.php?id='+this.id; 425 return true; 426 } 427 428 {/literal} 429 /* ]]> */ 430 </script> 431 {foreach from=$widgets.LINK_DETAIL.BOT item=v} 432 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 433 {include file="widget_central_top.tpl"} 434 {/if} 435 {$v.CONTENT} 436 {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'} 437 {include file="widget_central_bot.tpl"} 438 {/if} 439 {/foreach} 440 {/if} 441 {/strip} 442 {include file="footer.tpl"} 443
Legend: | Added(0,0) | Deleted(2,2) | Changed(2) | Changed in changed(0)