Advertisement
Advertisement
| 02.25.2008 at 10:01AM PST, ID: 23190972 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: |
$page = isset($_GET['page'])?$_GET['page']:1;
$perpage = isset($_GET['perpage'])?$_GET['perpage']:50;
$direct_session_data = get_data_by_page('session_data sd, service s', $fields, $where, 's.service_id, sd.service_date',$page,$perpage);
$total = get_total_page('session_data sd, service s',$where);
$num_pages = $total / $perpage;
if($num_pages > 1){
$out_str .= "<div align='center'>";
for ($i=1;$i<=$num_pages;$i++){
$out_str .= '<a href="' . $_SERVER['PHP_SELF'] . '?get_old=1&perpage='.$perpage.'&detail=' . $detail .'&page=' . $i .'">[page ' . $i . ']</a> ';
}
$selected_10 = '';
$selected_25 = '';
$selected_50 = '';
$selected_75 = '';
$selected_100 = '';
$selected_200 = '';
if ($perpage == 10) $selected_10 = 'selected="selected"';
if ($perpage == 25) $selected_25 = 'selected="selected"';
if ($perpage == 50) $selected_50 = 'selected="selected"';
if ($perpage == 75) $selected_75 = 'selected="selected"';
if ($perpage == 100) $selected_100 = 'selected="selected"';
if ($perpage == 200) $selected_200 = 'selected="selected"';
$out_str .= '
<form action="' . $_SERVER['PHP_SELF'] . '?get_old=1&detail=' . $detail .'&page=1" method="POST" id="firstDisplayForm" class="listDisplayCountForm"><div class="formRow"><span class="formName"><label for="firstDisplayCount">Display:</label>
</span><span class="formValue"><select id="perpage" name="perpage" style="width: 50px;">
<option value="10" '.$selected_10.'>10</option>
<option value="25" '.$selected_25.'>25</option>
<option value="50" '.$selected_50.'>50</option>
<option value="100" '.$selected_100.'>100</option>
<option value="200" '.$selected_200.'>200</option>
</select>
</span></div></form>
<script type="text/javascript">
var firstSelect = document.getElementById(\'perpage\');
var firstForm = document.getElementById(\'firstDisplayForm\');
initfirst();
function initfirst() {
firstSelect.onchange = function(){firstForm.submit();}}
</script>
';
|