コード例 #1
0
ファイル: profilef.php プロジェクト: vstorm83/propertease
 public function profilegetpastsearches()
 {
     $ret = '<table class="ptpastsearch">';
     $searches = profilef::profilegetsearchlist();
     $linenum = 0;
     foreach ($searches as $s) {
         $link = JURI::base() . '?sr=' . intval($s['id']);
         $searchid = intval($s['id']);
         $search = profilef::profilegetsearch($searchid);
         // 			$data=profilef::profilegetdata($search['state'],$search['council'],$search['scheme'],$search['zone'],$search['overlays'],$search['plan']);
         $title = empty($search['reference']) ? 'N/A' : profilef::hte($search['reference']);
         // 			$info =
         $user = empty($search['by']) ? 'N/A' : profilef::hte($search['by']);
         $date = empty($search['date']) ? 'N/A' : profilef::hte($search['date']);
         $ret .= '<tr><td>#' . ++$linenum . '</td><td><a href="' . $link . '">' . $title . '</a></td><td><span>FOR:</span>' . $user . '</td><td><span>DATE:</span>' . $date . '</td><td><a class="downloadreport" id="' . $searchid . '">download</a></td></tr>';
     }
     $ret .= '</table>';
     $downloadForm = profilef::profilegetpdfbutton(0);
     $ret .= $downloadForm;
     return $ret;
 }
コード例 #2
0
 public function profilegetpastsearches()
 {
     $ret = '<table class="ptpastsearch"><tr><th scope="col">Your Ref</th><th scope="col">Date</th><th scope="col">Propertease Ref</th></tr>';
     $searches = profilef::profilegetsearchlist();
     foreach ($searches as $search) {
         $link = JURI::base() . '?sr=' . intval($search['id']);
         $ret .= '<tr><td><a href="' . $link . '">' . profilef::hte($search['search_reference']) . '</a></td><td><a href="' . $link . '">' . profilef::hte($search['search_date']) . '</a></td><td><a href="' . $link . '">' . profilef::hte($search['search_id']) . '</a></td></tr>';
     }
     $ret .= '</table>';
     return $ret;
 }