/themes/simple/views/directory/list.ctp.php

https://github.com/sendtogeo/Seo-Panel · PHP · 124 lines · 122 code · 2 blank · 0 comment · 12 complexity · 4104021209b6cdf3ef333967cb22d032 MD5 · raw file

  1. <?php echo showSectionHead($spTextPanel['Directory Manager']); ?>
  2. <form id='search_form'>
  3. <table width="88%" border="0" cellspacing="0" cellpadding="0" class="search">
  4. <?php $submitLink = "scriptDoLoadPost('directories.php', 'search_form', 'content', '&sec=directorymgr')";?>
  5. <tr>
  6. <th><?php echo $spText['common']['Directory']?>: </th>
  7. <td width="100px"><input type="text" name="dir_name" value="<?php echo htmlentities($info['dir_name'], ENT_QUOTES)?>" onblur="<?php echo $submitLink?>"></td>
  8. <th><?php echo $spText['common']['Status']?>: </th>
  9. <td width="100px">
  10. <select name="stscheck" onchange="<?php echo $submitLink?>">
  11. <?php foreach($statusList as $key => $val){?>
  12. <?php if($info['stscheck'] == $val){?>
  13. <option value="<?php echo $val?>" selected><?php echo $key?></option>
  14. <?php }else{?>
  15. <option value="<?php echo $val?>"><?php echo $key?></option>
  16. <?php }?>
  17. <?php }?>
  18. </select>
  19. </td>
  20. <th><?php echo $spTextDir['Captcha']?>: </th>
  21. <td>
  22. <select name="capcheck" onchange="<?php echo $submitLink?>">
  23. <option value="">-- All --</option>
  24. <?php foreach($captchaList as $key => $val){?>
  25. <?php if($info['capcheck'] == $val){?>
  26. <option value="<?php echo $val?>" selected><?php echo $key?></option>
  27. <?php }else{?>
  28. <option value="<?php echo $val?>"><?php echo $key?></option>
  29. <?php }?>
  30. <?php }?>
  31. </select>
  32. </td>
  33. </tr>
  34. <tr>
  35. <th><?php echo $spText['common']['Pagerank']?>: </th>
  36. <td>
  37. <select name="pagerank" onchange="<?php echo $submitLink?>">
  38. <option value="">-- <?php echo $spText['common']['Select']?> --</option>
  39. <?php
  40. for ($i=0; $i<=10; $i++) {
  41. $selected = (($info['pagerank'] != '') && ($i == $info['pagerank'])) ? "selected" : "";
  42. ?>
  43. <option value="<?php echo $i?>" <?php echo $selected?>>PR <?php echo $i?></option>
  44. <?php
  45. }
  46. ?>
  47. </select>
  48. </td>
  49. <th><?php echo $spText['common']['lang']?>: </th>
  50. <td>
  51. <select name="lang_code" onchange="<?php echo $submitLink?>">
  52. <option value="">-- <?php echo $spText['common']['Select']?> --</option>
  53. <?php
  54. foreach ($langList as $langInfo) {
  55. $selected = ($langInfo['lang_code'] == $info['lang_code']) ? "selected" : "";
  56. ?>
  57. <option value="<?php echo $langInfo['lang_code']?>" <?php echo $selected?>><?php echo $langInfo['lang_name']?></option>
  58. <?php
  59. }
  60. ?>
  61. </select>
  62. </td>
  63. <td colspan="2" style="text-align: center;">
  64. <a href="javascript:void(0);" onclick="scriptDoLoadPost('directories.php', 'search_form', 'content', '&sec=directorymgr')" class="actionbut">
  65. <?php echo $spText['button']['Show Records']?>
  66. </a>
  67. </td>
  68. </tr>
  69. </table>
  70. <br></br>
  71. </form>
  72. <?php echo $pagingDiv?>
  73. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
  74. <tr class="listHead">
  75. <td class="left"><?php echo $spText['common']['Id']?></td>
  76. <td><?php echo $spText['common']['Website']?></td>
  77. <td>PR</td>
  78. <td><?php echo $spText['common']['Domain Authority']?></td>
  79. <td><?php echo $spText['common']['Page Authority']?></td>
  80. <td><?php echo $spTextDir['Captcha']?></td>
  81. <td><?php echo $spText['common']['lang']?></td>
  82. <td><?php echo $spText['common']['Status']?></td>
  83. <td class="right"><?php echo $spText['common']['Action']?></td>
  84. </tr>
  85. <?php
  86. $colCount = 9;
  87. if(count($list) > 0){
  88. $catCount = count($list);
  89. foreach($list as $i => $listInfo){
  90. $class = ($i % 2) ? "blue_row" : "white_row";
  91. if($catCount == ($i + 1)){
  92. $leftBotClass = "tab_left_bot";
  93. $rightBotClass = "tab_right_bot";
  94. }else{
  95. $leftBotClass = "td_left_border td_br_right";
  96. $rightBotClass = "td_br_right";
  97. }
  98. $statusLink = $ctrler->getStatusLink($listInfo['id'], $listInfo['working']);
  99. $checkLink = scriptAJAXLinkHref('directories.php', "status_{$listInfo['id']}", "sec=checkdir&dir_id={$listInfo['id']}&nodebug=1&checkpr=1", $spText['button']["Check Status"]);
  100. ?>
  101. <tr class="<?php echo $class?>">
  102. <td class="<?php echo $leftBotClass?>"><?php echo $listInfo['id']?></td>
  103. <td class="td_br_right left"><a target="_blank" href="<?php echo $listInfo['submit_url']?>"><?php echo str_replace('http://', '', $listInfo['domain']); ?></a></td>
  104. <td class="td_br_right" id="pr_<?php echo $listInfo['id']?>"><?php echo $listInfo['pagerank']?></td>
  105. <td class="td_br_right" id="da_<?php echo $listInfo['id']?>"><?php echo $listInfo['domain_authority']?></td>
  106. <td class="td_br_right" id="pa_<?php echo $listInfo['id']?>"><?php echo $listInfo['page_authority']?></td>
  107. <td class="td_br_right" id="captcha_<?php echo $listInfo['id']?>"><?php echo $listInfo['is_captcha'] ? $spText['common']["Yes"] : $spText['common']["No"]; ?></td>
  108. <td class="td_br_right"><?php echo $listInfo['lang_name']?></td>
  109. <td class="td_br_right" id="status_<?php echo $listInfo['id']?>"><?php echo $statusLink; ?></td>
  110. <td class="<?php echo $rightBotClass?>" width="100px"><?php echo $checkLink; ?></td>
  111. </tr>
  112. <?php
  113. }
  114. }else{
  115. echo showNoRecordsList($colCount-2);
  116. }
  117. ?>
  118. <tr class="listBot">
  119. <td class="left" colspan="<?php echo ($colCount-1)?>"></td>
  120. <td class="right"></td>
  121. </tr>
  122. </table>