예제 #1
0
          <tr>
            <td valign="top">
            
            <div id="searchresults">
            <?php 
#$page_list = array();
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n           \t<td class='listheader' nowrap>Student</td>\r\r\n\t\t\t<td class='listheader' nowrap>Student No</td>\r\r\n           \t<td class='listheader' nowrap>Age</td>\r\r\n\t\t\t<td class='listheader' nowrap>Current Class</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        #Get the current class details
        $current_class = current_class($this, $row['id']);
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        echo " &nbsp;&nbsp; <a href='" . base_url() . "students/load_registration_form/s/" . encryptValue($row['id']) . "' title=\"Click to register " . $row['firstname'] . ".\">Register student</a>";
        echo "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['studentno'] . "</td>\r\r\n\t\t<td valign='top' nowrap>" . number_format(get_date_diff($row['dob'], date('m/d/Y h:i:s a', time()), 'days') / 365, 0) . "</td>" . "<td valign='top' nowrap>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_student_register/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No student admissions have been made.</div";
}
?>

            
            </div>
            </td>
            </tr>
          
        </table>
    </div>
예제 #2
0
            $total_credit += $row['amount'];
        }
        #total credit
        if ($row['cr_dr'] == 'DR') {
            $total_debit += $row['amount'];
        }
        $balance = $total_credit - $total_debit;
        #Show one row at a time
        echo "<tr class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n    <td class='leftListCell rightListCell' valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "finances/delete_transaction/i/" . encryptValue($row['transid']) . "', 'Are you sure you want to remove this fee? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this fee.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a href='" . base_url() . "finances/load_transaction_form/i/" . encryptValue($row['transid']) . "' title=\"Click to edit this fee details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n            <td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n            <td valign='top'>" . $account_info['title'] . "</td>\r\r\n            <td valign='top'>" . $row['particulars'] . "</td>\t\t\t\t\r\r\n            <td valign='top' class='number_format' align='right' nowrap>" . ($row['cr_dr'] == 'DR' ? number_format($row['amount'], 0, '.', ',') : '') . "</td>\t\t\r\r\n            <td valign='top' class='number_format' align='right' nowrap>" . ($row['cr_dr'] == 'CR' ? number_format($row['amount'], 0, '.', ',') : '') . "</td>\r\r\n            <td class='rightListCell number_format' valign='top' align='right' nowrap>" . number_format($balance, 0, '.', ',') . "</td>\t\t\r\r\n        </tr>";
        $counter++;
    }
    echo "<tr>\r\r\n<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "finances/manage_petty_cash_book/p/%d") . "</td>\r\r\n</tr>\r\r\n</table>";
} else {
    echo "<div>No transactions have been added.</div>";
}
?>

        
        
        </td>
        </tr>
      
    </table>
</div>
예제 #3
0
        echo number_format($row['BidAmount']);
        ?>
</td>
            <td align="left"><a title="<b><u>FULL BID DETAILS</u></b><br/><?php 
        echo $row['Details'];
        ?>
" href="#"><?php 
        echo substr(nl2br(strip_tags($row['Details'])), 0, 30) . '.....';
        ?>
</a></td>
            <td align="center"><a href="companybids/receipts/<?php 
        echo $row['Receipt'];
        ?>
" title="Download receipt?" target="_blank"><img src="thumb.php?src=companybids/receipts/receipt2.jpg&w=30&h=30&zc=1&q=100" width="30"/></a></td>
            <td align="center"><?php 
        echo date("D, j M, Y", GetTimeStamp($row['DateIn']));
        ?>
</td>
            <?php 
        if (isset($bidclosed)) {
            ?>
                	<td align="center"><a title="<b><u>RESPONSE / COMMENT</u></b><br/><?php 
            echo $row['Response'];
            ?>
" href="#"><B><?php 
            echo $row['BidWinner'];
            ?>
</B></a></td> 
            <?php 
        }
        ?>
예제 #4
0
              <td>
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Returned</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Serial Number</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #check expiry of rental period
        $currentdate = date("Y-m-d H:i:s");
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t\t<td valign='top' nowrap>";
        if (1) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "library/delete_return/i/" . encryptValue($row['returnid']) . "', 'Are you sure you want to remove this borrower? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this borrower.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (1) {
            echo " <a href='" . base_url() . "library/return_rental/i/" . encryptValue($row['returnid']) . "/s/" . encryptValue($row['stockid']) . "' title=\"Click to edit this return.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['returndate'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_form/i/" . encryptValue($row['stockid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this stock item.\">" . $row['stocktitle'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_item_form/i/" . encryptValue($row['item']) . "/a/" . encryptValue("view") . "/s/" . encryptValue($row['stockid']) . "' title=\"Click to view this item.\">" . $row['serialnumber'] . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "library/manage_borrowers/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There is no return at the moment.");
}
?>
</div>
              </td>
              </tr>

        </table>
예제 #5
0
?>
</td>
</tr>
</table>
</div><br /><br />
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' nowrap>Date Borrowed</td>\r\r\n           \t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Returned / Borrowed</td>\r\r\n\t\t\t<td class='listheader' nowrap>Name</td>\r\r\n\t\t\t\r\r\n\t\t\t<td class='listheader' nowrap>Date Expected</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #check expiry of rental period
        $currentdate = date("Y-m-d H:i:s");
        $borrower_status = check_borrower_status($this, $row['borrowerid']);
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>";
        echo "\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datetaken'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['stocktitle'] . "</td>'\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . ($row['copiestaken'] - $borrower_status) . "/" . $row['copiestaken'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['returndate'])) . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr></table>";
} else {
    echo format_notice("There are no borrowing data matching that criteria at the moment.");
}
?>
<br /><br />
<?php 
$this->load->view('incl/footer');
?>

</body>
</html>
예제 #6
0
        #Show in drop down if more than 1 class
        if (is_array($classids)) {
            if (count($classids) > 1) {
                foreach ($classids as $key => $classid) {
                    $class_str .= '<option>' . get_class_title($this, $classid) . '</option>';
                }
                $class_str = '<select class="selectfield">' . $class_str . '</select>';
            } elseif (count($classids) > 0) {
                $class_str = get_class_title($this, $classids[1]);
            }
        } else {
            $class_str = "N/A";
        }
        #Show one row at a time
        echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='middle' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "exams/delete_exam/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this exam? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove " . $row['exam'] . " from the school exam schedule.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "exams/load_exam_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit " . $row['exam'] . " details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['exam'] . "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['contribution'] . "</td>\t\t\t\t\r\r\n\t\t\t\t<td valign='middle' nowrap>" . $term['term'] . " [" . $term['year'] . "]</td>\r\r\n\t\t\t\t<td valign='middle'>" . $class_str . "</td>\r\r\n\t\t\t\t<td valign='middle' class='rightListCell'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "exams/manage_exams/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No exams have been added. Click <a class='fancybox fancybox.ajax' href='" . base_url() . "exams/load_exam_form')' title='Click to add an exam'><i>here</i></a> to add an exam</div>";
}
?>

예제 #7
0
    $counter = 0;
    foreach ($page_list as $row) {
        #User group details
        $usergroup = get_user_group_details($this, $row['usergroup']);
        if (empty($usergroup)) {
            $usergroup['groupname'] = '';
        }
        #Show one row at a time
        echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "user/delete_staff/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this user? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove this user.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "user/load_staff_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this user details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . ucwords(strtolower($row['firstname'] . " " . $row['lastname'])) . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['username'] . "</td>\r\r\n\t\t<td valign='top'>" . check_empty_value($usergroup['groupname'], 'N/A') . "</td>\t\t\r\r\n\t\t<td valign='top' nowrap>" . $row['telephone'] . "</td>\t\t\r\r\n\t\t<td valign='top'>" . $row['emailaddress'] . "</td>\r\r\n\t\t<td valign='top' class='rightListCell'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "user/manage_staff/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No users have been registered.</div";
}
?>

            
            </div>
            </td>
            </tr>
          
        </table>
    </div>
예제 #8
0
} else {
    echo $mindate;
}
?>
</td>
</tr>
</table>
</div><br /><br />
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n           \t<td class='listheader' nowrap>Serial Number</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>ISBN Number</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>";
        echo "\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datecreated'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['serialnumber'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['stocktitle'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['isbnnumber'] . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr></table>";
} else {
    echo format_notice("There are no library data matching that criteria at the moment.");
}
?>
<br /><br />
<?php 
$this->load->view('incl/footer');
?>

</body>
</html>
예제 #9
0
     mysql_select_db($database_brewing, $brewing);
     $query_upDays = "SELECT * FROM upcoming";
     if ($filter != "all") {
         $query_upDays .= " WHERE brewBrewerID = '{$filter}'";
     }
     $upDays = mysql_query($query_upDays, $brewing) or die(mysql_error());
     $row_upDays = mysql_fetch_assoc($upDays);
     $totalRows_upDays = mysql_num_rows($upDays);
     do {
         mysql_select_db($database_brewing, $brewing);
         $query_upRecipe = sprintf("SELECT brewBrewerID FROM recipes WHERE id = '%s'", $row_upDays['upcomingRecipeID']);
         $upRecipe = mysql_query($query_upRecipe, $brewing) or die(mysql_error());
         $row_upRecipe = mysql_fetch_assoc($upRecipe);
         $totalRows_upRecipe = mysql_num_rows($upRecipe);
         $MySqlDate_3 = $row_upDays['upcomingDate'];
         $upcoming3 = GetTimeStamp($MySqlDate_3);
         if ($todaysDate < $upcoming3) {
             $upBrewName3 = truncate_string($row_upDays['upcoming'], 12, '...');
             if ($upcoming3 == $today3) {
                 echo "<tr><td valign=\"top\" class=\"calInfo\">Up: </td><td valign=\"top\" class=\"calInfo\">";
                 if ($row_upDays['upcomingRecipeID'] != "") {
                     echo "<a href=\"index.php?page=recipe&filter=" . $row_upRecipe['brewBrewerID'] . "&id=" . $row_upDays['upcomingRecipeID'] . "\">" . $upBrewName3 . "</a>";
                 } else {
                     echo $upBrewName3;
                 }
                 echo "</td></tr>";
             }
         }
     } while ($row_upDays = mysql_fetch_assoc($upDays));
     echo "</table></td>\n";
 }
예제 #10
0
echo $transaction['amount'];
?>
</td></tr>
<tr>
  <td>Particulars</td>
  <td colspan="3"><?php 
echo $feedetails['fee'];
?>
</td>
</tr>
<tr><td>Paid by</td><td colspan="3"><?php 
echo $transaction['payer'];
?>
</td></tr>
<tr><td>Received by</td><td><?php 
echo $author['firstname'] . ' ' . $author['lastname'];
?>
</td><td>Date :</td><td><?php 
echo date("j M, Y", GetTimeStamp($transaction['dateadded']));
?>
</td></tr>
<tr><td>PRINT DATE</td><td><?php 
echo date("j M, Y");
?>
</td><td>PRINTED BY :</td><td><?php 
echo $this->session->userdata('names');
?>
</td></tr>
</table>
</body>
</html>
예제 #11
0
              </tr>
            <tr>
              <td>
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n           \t\r\r\n\t\t\t<td class='listheader' nowrap>Item Name</td>\t\t\t\r\r\n\t\t\t<td class='listheader' nowrap>Quantity</td>\r\r\n\t\t\t<td class='listheader' nowrap>Issued to:</td>\t\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        if (1) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "students/delete_transaction/i/" . encryptValue($row['transactionid']) . "', 'Are you sure you want to remove this transaction? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this transaction.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (1) {
            echo " <a href='" . base_url() . "students/load_transaction_form/i/" . encryptValue($row['transactionid']) . "/s/" . encryptValue($row['studentid']) . "' title=\"Click to edit this transaction.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datecreated'])) . "</td>\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "inventory/load_item_form/i/" . encryptValue($row['itemid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this item.\">" . $row['itemname'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['quantity'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "students/load_student_form/i/" . encryptValue($row['studentid']) . "/a/" . encryptValue("view") . "' title=\"Click to view this student.\">" . $row['studentno'] . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There are no transactions at the moment.");
}
?>
</div>
              </td>
              </tr>

        </table>
예제 #12
0
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td width='1%' class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td width='1%' class='listheader'>ISBN</td>\r\r\n\t\t\t<td class='listheader' nowrap>Title</td>\r\r\n\t\t\t<td class='listheader' nowrap>Author</td>\r\r\n\t\t\t<td class='listheader' nowrap>Status</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Taken</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Returned</td>\r\r\n\t\t\t</tr>";
    #print_r($page_list);
    $counter = 0;
    foreach ($page_list as $row) {
        $row_color_class = '';
        if ($row['bookStatus'] == 'OUT') {
            $row_color_class = 'red_list_row';
        } else {
            $row_color_class = $counter % 2 ? '' : 'grey_list_row';
        }
        #Show one row at a time
        print "<tr id='list-row-" . $row['booklibraryId'] . "' class='listrow " . $row_color_class . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        print "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "library/delete_title/i/" . encryptValue($row['booklibraryId']) . "', 'Are you sure you want to remove this book? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.','list-row-" . $row['booklibraryId'] . "');\" title=\"Click to remove the item.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>&nbsp;&nbsp";
        if ($row['bookStatus'] == 'OUT') {
            print "&nbsp;&nbsp<a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/return_book_form/i/" . encryptValue($row['booklibraryId']) . "' title=\"Click to view return this book.\" class='fancybox fancybox.ajax contentlink'><img src='" . base_url() . "images/return_item.png' border='0'/></a>&nbsp;&nbsp";
        }
        print "</td>\r\r\n\t\t <td><a class=\"fancybox fancybox.ajax\" href='" . base_url() . "library/load_stock_form/i/" . encryptValue($row['booklibraryId']) . "/a/" . encryptValue("view") . "' title=\"Click to view this item.\" class='fancybox fancybox.ajax contentlink'>" . $row['isbnnumber'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['bookTitle'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['bookAuthor'] . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' valign='top'>" . $row['bookStatus'] . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' valign='top'>" . (!empty($row['lastBorrowTransDate']) ? date("j M, Y", GetTimeStamp($row['lastBorrowTransDate'])) : 'N/A') . "</td>\r\r\n\t\t\r\r\n\t\t<td  align='left' class='rightListCell' valign='top'>" . (!empty($row['lastBorrowTransDate']) && $row['lastBorrowTransDate'] < $row['lastReturnTransDate'] ? date("j M, Y", GetTimeStamp($row['lastReturnTransDate'])) : '') . "</a></td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "library/inventory_status/p/%d", 'results') . "</td>\t\r\r\n\t</table>";
} else {
    echo format_notice("WARNING: No books have been added<br />Click &nbsp;<a class='fancybox fancybox.ajax' href='" . base_url() . "library/load_title_form' title='Click to add a Book'>here</a> to add book titles");
}
?>

</div>
              </td>
              </tr>

        </table>
</div> </div>
예제 #13
0
        $current_class = current_class($this, $row['id']);
        echo "<tr class='listrow " . ($counter % 2 ? '' : 'grey_list_row') . "' id='student-list-row-" . $row['id'] . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        if ($view_leave) {
            echo " &nbsp;&nbsp; <a href='" . base_url() . "students/load_leave_form/s/" . encryptValue($row['id']) . "' title=\"Click to assign " . $row['firstname'] . " leave.\">Assign leave</a>";
        } else {
            #if(check_user_access($this,'delete_deal')){
            echo "<input class=\"list_checkbox\" type=\"checkbox\" name=\"selected_student[]\" id=\"selected_student_" . $row['id'] . "\" />";
            #}
            if ($delete_students) {
                echo "&nbsp;&nbsp;<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "students/delete_student/i/" . encryptValue($row['id']) . "', 'Are you sure you want to delete this student? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.','student-list-row-" . $row['id'] . "');\" title=\"Click to remove this student.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
            }
            #if(check_user_access($this,'update_deals')){
            //echo " &nbsp;&nbsp; <a onclick=\"updateFieldLayer('".base_url()."students/student_profile/i/".encryptValue($row['id'])."','','','contentdiv','');\" href='javascript:void(0)' title=\"Click to edit ".$row['firstname']."'s details.\"><img src='".base_url()."images/edit.png' border='0'/></a>";
            #}
        }
        echo "</td>\t\t\r\r\n\t\t<td valign='top' id='std_name_" . $row['id'] . "'><a onclick=\"updateFieldLayer('" . base_url() . "students/student_profile/i/" . encryptValue($row['id']) . "','','','contentdiv','');\" href='javascript:void(0)' title=\"Click to edit " . $row['firstname'] . "'s details.\">" . $row['firstname'] . " " . $row['lastname'] . "</a></td>\t\r\r\n\t\t<td valign='top'>" . $row['sponsorfullname'] . "</td>\t\r\r\n\t\t<td valign='top'>" . $row['studentno'] . "</td>\r\r\n\t\t<td valign='top' nowrap>" . number_format(get_date_diff($row['dob'], date('m/d/Y h:i:s a', time()), 'days') / 365, 0) . "</td>" . ($view_leave ? "<td valign='top' nowrap id='std_class_" . $row['id'] . "'>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>" . "<td>" . (empty($row['leaves']) ? '<i>N/A</i>' : '<a href="' . base_url() . 'students/student_leave_list/i/' . encryptValue($row['id']) . '" title="click to view ' . $row['firstname'] . '\' leaves.">' . $row['leaves'] . '</a>') . "</td></tr>" : "<td valign='top'>" . $admitclass . ", " . $admitterminfo['term'] . " [" . $admitterminfo['year'] . "]</td>\r\r\n\t\t<td valign='top' id='std_class_" . $row['id'] . "' nowrap>" . $current_class['class'] . ", " . $current_class['term'] . " [" . $current_class['year'] . "]</td>\r\r\n\t\t<td class='rightListCell' valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>");
        $counter++;
        $current_student = $row['id'];
    }
    echo "<tr>\r\r\n\t  \t <td colspan='7' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_students/p/%d", 'contentdiv') . "</td>\r\r\n\t\t</tr>\r\r\n\t\t</table>";
} else {
    echo "<div>No student admissions have been made.</div>";
}
?>

           </div> 
            
            </td>
            </tr>
          
        </table>
예제 #14
0
파일: notices.php 프로젝트: Bakyenga/kyengs
</a></td>
          	<td><a href="<?php 
    echo $redirectUrl . $notice_details['notice_id'];
    ?>
" class="notices">
                <div class="msgContent"><?php 
    echo "<b>" . $notice_details['title'] . "</b>";
    ?>
</div>
                </a>
            </td>
            <td><a href="<?php 
    echo $redirectUrl . $notice_details['notice_id'];
    ?>
" class="notices"><b><?php 
    echo date("D, j M, Y", GetTimeStamp($notice_details['dateadded']));
    ?>
</b></a></td>
         
          </tr>          
        
		 <?php 
}
?>
 
      </table>
    </div></td></tr></table></td>
                  </tr>
              </table> 
</td>
              <td width="1%"><img src='<?php 
예제 #15
0
		$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
		$MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; 
		$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; 
		$MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; 
		//mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); 
		//echo "<script language=javascript>document.getElementById(\"contactStatus\").innerHTML = \"Your comments have been sent\" </script>";
		echo "<script language=javascript>alert(\"Your comments have been registered\") </script>";
		
		//echo "<script src=\"Scripts/sexyalertbox.v1.1.js\" language=javascript>Sexy.alert(\"Your comments have been sent successfully!!\")</script>";
	}*/
?>

<?php 
//print_r($_GET);
if (strcmp($_GET['response'], "OK") == 0) {
    $servertime = GetTimeStamp();
    $original = $_GET['time'];
    $timediff = getMyTimeDiff($servertime, $original);
    if ($timediff < 30) {
        //check that the user cannot refresh the page submit again and again
        echo "<script language=javascript>alert(\"Your comments have been sent\") </script>";
    }
    //unset($_GET);
}
function GetTimeStamp()
{
    $accessDate = date("Y-m-d");
    $timezone = 'Asia/Calcutta';
    date_default_timezone_set($timezone);
    $tz = date_default_timezone_get();
    $accessTime = date("H:i:s");
예제 #16
0
    <?php 
#$page_list = array();
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n    <tr>\r\r\n    <td class='listheader'>&nbsp;</td>\r\r\n    <td class='listheader' nowrap>School&nbsp;<a class='fancybox fancybox.ajax' href='" . base_url() . "admin/load_school_form' title='Click to add a school'><img src='" . base_url() . "images/add_item.png' border='0'/></a></td>\r\r\n    <td class='listheader' nowrap>Location</td>\r\r\n    <td class='listheader' nowrap>Contact Phone</td>\r\r\n    <td class='listheader' nowrap>Expiry Date</td>\r\r\n    <td class='listheader' nowrap>Days Left</td>\r\r\n    <td class='listheader' nowrap>Date Added</td>\r\r\n    </tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n<td valign='top' nowrap>";
        if (!empty($adduser) && $adduser == 'true') {
            echo " &nbsp;&nbsp; <a href='" . base_url() . 'admin/add_school_user/s/' . encryptValue($row['id']) . "' title=\"Click to add users to " . $row['schoolname'] . "\"><img src='" . base_url() . "images/add_user.png' border='0'/></a>";
        } else {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "admin/delete_school/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this school? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this deal.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
            echo "&nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "admin/load_school_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this school details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
            echo " &nbsp;&nbsp; <a  onclick=\"updateFieldLayer('" . base_url() . "admin/school_users/s/" . encryptValue($row['id']) . "','','','contentdiv','');\" href='javascript:void(0)' title=\"Click to view users in this school.\"><img src='" . base_url() . "images/users_icon.png' border='0'/></a>";
        }
        $days_left = get_date_diff(date('m/d/Y h:i:s a', time()), $row['todate'], 'days');
        echo "</td>\r\r\n\r\r\n<td valign='top'>" . $row['schoolname'] . "</td>\r\r\n\r\r\n<td valign='top'>" . $row['district'] . "</td>\r\r\n        \r\r\n<td valign='top' nowrap>" . $row['telephone'] . "</td>\r\r\n\r\r\n<td valign='top'>" . date("j M, Y", GetTimeStamp($row['todate'])) . "</td>\r\r\n<td valign='top'>" . ($days_left < 0 ? '<i>Expired</i>' : $days_left) . "</td>\r\r\n<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n</tr>\r\r\n</table>";
} else {
    echo "<div>No schools have been registered.</div";
}
?>

    
    
    </td>
    </tr>
  
</table>
예제 #17
0
<div id="searchresults">
<?php 
#Show search results
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n           \t<td class='listheader' nowrap>Subject</td>\r\r\n\t\t\t<td class='listheader' nowrap>Student</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        if (1) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "student/delete_miscelleneous/i/" . encryptValue($row['miscid']) . "', 'Are you sure you want to remove this item? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this item.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (1) {
            echo " <a href='" . base_url() . "students/load_miscelleneous_form/i/" . encryptValue($row['miscid']) . "/s/" . encryptValue($row['studentid']) . "' title=\"Click to edit this item.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'><a href='" . base_url() . "students/load_miscelleneous_form/i/" . encryptValue($row['miscid']) . "/a/" . encryptValue("view") . "/s/" . encryptValue($row['studentid']) . "/u/" . encryptValue("update") . "' title=\"Click to edit this item.\">" . $row['subject'] . "</a></td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "students/manage_miscelleneous/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There is no at the moment.");
}
?>
</div>
              </td>
              </tr>

        </table></td>
            </tr>
          
        </table>
예제 #18
0
        if (empty($row['receivedby'])) {
            $receivedby = $returndate = '<i>N/A</i>';
        } else {
            $receivedby = get_school_user_fullname($this, $row['receivedby']);
            $receivedby = $receivedby['firstname'] . ' ' . $receivedby['lastname'];
            $returndate = date("j M, Y", GetTimeStamp($row['returndate']));
        }
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "terms/delete_term/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this term? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this term.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a href='" . base_url() . "terms/load_term_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this term's details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['startdate'])) . "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['expectedreturndate'])) . "</td>\t\t\t\t\r\r\n\t\t\t\t<td valign='top' nowrap>" . get_date_diff(date('m/d/Y h:i:s a', time()), $row['expectedreturndate'], 'days') . "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . $author . "</td>\r\r\n\t\t\t\t<td valign='top'>" . $returndate . "</td>\r\r\n\t\t\t\t<td valign='top'>" . $receivedby . "</td>\r\r\n\t\t\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No terms have been added.</div";
}
?>

            
            
            </td>
            </tr>
          
        </table>
    </div>
예제 #19
0
    $to_date = $_GET['to_date'];
}
if (isset($_GET['type'])) {
    $type = $_GET['type'];
}
if (isset($_GET['username'])) {
    $username = urldecode($_GET['username']);
}
if (isset($_GET['centerNickname'])) {
    $centerNickname = $_GET['centerNickname'];
}
if (!isset($centerNickname) || empty($centerNickname)) {
    $centerNickname = $_SESSION['nickname'];
}
$mysqlFromDate = mysql_real_escape_string(GetTimeStamp($from_date));
$mysqlToDate = mysql_real_escape_string(GetTimeStamp($to_date));
$centerNickname = mysql_real_escape_string($centerNickname);
$res = mysql_query("SELECT usr.company_id,c.name FROM " . USERS . " as usr LEFT JOIN " . COMPANY . " as c on c.id=usr.company_id WHERE usr.username ='******'username'] . "'");
if ($res && mysql_num_rows($res) > 0) {
    $row = mysql_fetch_row($res);
    $company_id = $row[0];
    $company_name = $row[1];
}
$dateRangeFilter = $from_date && $to_date ? " AND DATE(lv.at) BETWEEN '" . $mysqlFromDate . "' AND '" . $mysqlToDate . "'" : "";
$username = !empty($username) ? mysql_real_escape_string($username) : '';
if ($type && $type == 'userLoveCountsByDate') {
    // Get nickname for the user who's being viewed
    $viewPointNickname = $centerNickname;
    $viewPointUsername = get_username_for_nick($viewPointNickname, $company_id);
    $filters = '';
    // No filters at the moment.
예제 #20
0
                              <td><a href="" title="Click to view company profile."><?php 
    echo $reply_details['companyname'];
    ?>
</a></td>
                                      <td><?php 
    echo number_format($reply_details['amount'], 0, '', ',');
    ?>
 </td>
                                      
                                      <td><?php 
    echo substr($reply_details['brief'], 0, 30) . "...";
    ?>
</td>
                                      
                                      <td><?php 
    echo date("D, j M, Y", GetTimeStamp($reply_details['reply_date']));
    ?>
</td>
                                      
                                      <td><input type="radio" name="chosen" value="<?php 
    echo $reply_details['reply_id'] . "_" . $reply_details['company_id'] . "_" . $reply_details['posted_by'];
    ?>
" /></td>
                                      <td><a title="Click to bid details" style="color:#CC0000" href="#">View Details</a></td>
                                    </tr>  
                                        
                                        
                                        
                                        
                                        
									<?php 
function DateArg($name)
{
    return isset($_GET[$name]) ? GetTimeStamp($_GET[$name]) : null;
}
예제 #22
0
        <td align="right" class="menuheader">&nbsp;&raquo;</td>
        <td nowrap="nowrap" class="menuheader">GPS Points</td>
     </tr>
	 <tr>
          <td class="menuheader" height="0" colspan="2"></td>
     </tr>
		<ul style="list-style:none">		
		<?php 
foreach ($gps_array as $gps) {
    ?>
				
				<tr><td colspan="2"><a href="Javascript:;" onclick="window.frames.map.codeLatLng('<?php 
    echo $gps['message'];
    ?>
')"><?php 
    echo date("j M, Y", GetTimeStamp($gps['date_added'])) . " at " . reset(array_reverse(explode(" ", $gps['date_added'])));
    ?>
</a></li></td>
			</tr>	
                <?php 
}
?>
                
                		
    <tr>
         <td colspan="2" height="4"></td>
    </tr>
</table>
              
              </td>
            
예제 #23
0
        if (is_array($classids)) {
            if (count($classids) > 1) {
                foreach ($classids as $key => $classid) {
                    $class_str .= '<option>' . get_class_title($this, $classid) . '</option>';
                }
                $class_str = '<select class="selectfield">' . $class_str . '</select>';
            } elseif (count($classids) > 0) {
                $class_str = get_class_title($this, end($classids));
            }
        } else {
            $class_str = "N/A";
        }
        #Show one row at a time
        echo "<tr id='tr_" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='middle' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "grading/delete_grading_scheme/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this grading scale? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['id'] . "');\" title=\"Click to remove " . $row['gradingname'] . " from the school exam schedule.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "grading/load_grading_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit " . $row['gradingname'] . " details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['gradingname'] . "</td>\t\t\r\r\n\t\t\t\t<td valign='middle'>" . $row['description'] . "</td>\t\t\t\t\r\r\n\t\t\t\t<td valign='middle' nowrap>" . $class_str . "</td>\r\r\n\t\t\t\t<td  class='rightListCell' valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "grading/manage_grading/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No grading schemes have been added. Click <a class='fancybox fancybox.ajax' href='" . base_url() . "grading/load_grading_form')' title='Click to add a grading scale'><i>here</i></a> to add a grading scheme</div";
}
?>
    
            
       
예제 #24
0
          <td ><table width="706" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="697" border="0" cellspacing="0" cellpadding="6">
                <tr>
                  <td colspan="2" class="bottomtableborder_heading"><b><?php 
echo $notices[0]['title'];
?>
 </b></td>
                </tr>
                <tr>
                  <td>From <?php 
echo $notices[0]['from_employee_name'] . "," . $notices[0]['from_company'];
?>
 to Me</td>
                  <td><b><?php 
echo date("D, j M, Y", GetTimeStamp($notices[0]['dateadded']));
?>
</b></td>
                </tr>                
                <tr>
                  <td colspan="2" nowrap="nowrap"><table width="99%" border="0" cellspacing="0" cellpadding="0" class="tableadmin">
  <tr>
    <td><div style="padding:0px; width:100%; height:350px;" id='searchresults'>
      <table width="665" border="0" cellspacing="0" cellpadding="10">
          <tr>
          	<td><div style="width:665px; overflow: hidden"><?php 
echo $notices[0]['content'];
?>
</div>
            	<div style="margin-top:20px"><input id="confirm_1" type="radio" name="confirm" value="1" /> <label for="confirm_1" > Confirm Job</label></div>
                <div style="margin-top:20px"><input id="confirm_2" type="radio" name="confirm" value="2" /><label for="confirm_2" > Reject Job</label></div>
            $total_debit += $debit;
        } else {
            $debit = 0;
            $credit = $row['amount'];
            $balance += $credit;
            $total_credit += $credit;
        }
        $fee = get_fee_lines($this, $row['fee']);
        echo "<tr class='listrow' style='" . get_row_color($counter, 2, 'row_borders') . "'>\r\r\n\t\t<td valign='top' nowrap>";
        if (check_user_access($this, 'delete_deal')) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "finances/delete_fee/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this fee? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this fee.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a href='#' title=\"Click to print this transaction details.\"><img src='" . base_url() . "images/small_pdf.png' border='0'/></a>";
        #}
        echo "</td>\r\r\n\t\t \t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\r\r\n\t\t\t\t<td valign='top'>" . $fee['fee'] . "</td>\r\r\n\t\t\t\t<td valign='top' nowrap align='right'>" . number_format($debit, 0, '.', ',') . "</td>\r\r\n\t\t\t\t<td valign='top' nowrap align='right'>" . number_format($credit, 0, '.', ',') . "</td>\r\r\n\t\t\t\t<td valign='top' nowrap align='right'>" . number_format($balance, 0, '.', ',') . "</td>\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t\t  <td colspan='3'></td>\r\r\n\t\t  <td><div class='sum'>" . number_format($total_debit, 0, '.', ',') . "</div></td>\r\r\n\t\t  <td><div class='sum'>" . number_format($total_credit, 0, '.', ',') . "</div></td>\r\r\n\t\t  <td style='padding-right:0'><div class='sum'>" . number_format(-($total_debit - $total_credit), 0, '.', ',') . "</div></td>\r\r\n\t\t </tr>";
    echo "<tr>\r\r\n\t<td colspan='6' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "classes/manage_classes/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No transactions have been added.</div";
}
?>


                </div>
            </td>
    </tr>

</table>
예제 #26
0
            
            <?php 
#$page_list = array();
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n           \t<td class='listheader' nowrap>User</td>\r\r\n\t\t\t<td class='listheader' nowrap>Username</td>\r\r\n           \t<td class='listheader' nowrap>Phone</td>\r\r\n\t\t\t<td class='listheader' nowrap>Email</td>\r\r\n\t\t\t<td class='listheader' nowrap>Date Added</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td valign='top' nowrap>";
        if (check_user_access($this, 'delete_deal')) {
            echo "<a href='javascript:void(0)' onclick=\"confirmDeleteEntity('" . base_url() . "admin/delete_user/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this user? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.');\" title=\"Click to remove this user.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        }
        if (check_user_access($this, 'update_deals')) {
            echo " &nbsp;&nbsp; <a href='" . base_url() . "admin/load_user_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this user details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        }
        echo "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['firstname'] . " " . $row['lastname'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['username'] . "</td>\r\r\n\t\t\t\t\r\r\n\t\t<td valign='top' nowrap>" . $row['telephone'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['emailaddress'] . "</td>\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "deal/manage_deals/p/%d") . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo "<div>No schools have been registered.</div";
}
?>

            
            
            </td>
            </tr>
          
        </table>
    </div>
예제 #27
0
 <?php 
#$page_list = array();
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader'>&nbsp;</td>\r\r\n           \t<td class='listheader' nowrap>Date &nbsp;<a class='fancybox fancybox.ajax' href='" . base_url() . "discipline/load_incident_form/s/" . $i . "')' title='Click to add a class'><img src='" . base_url() . "images/add_item.png' border='0'/></a></td>\r\r\n\t\t\t<td class='listheader' nowrap>Incident detail</td>\r\r\n           \t<td class='listheader' nowrap>Response</td>\r\r\n\t\t\t<td class='listheader' nowrap>Action taken</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    foreach ($page_list as $row) {
        #Show one row at a time
        echo "<tr id='tr_" . $row['incidentid'] . "' class='listrow " . ($counter % 2 ? '' : 'grey_list_row') . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='bottom' width='1%' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "classes/delete_class/i/" . encryptValue($row['incidentid']) . "', 'Are you sure you want to delete this incident? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.', 'tr_" . $row['incidentid'] . "');\" title=\"Click to remove this class.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a href='" . base_url() . "classes/load_class_form/i/" . encryptValue($row['incidentid']) . "' title=\"Click to edit this class details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['incidentdate'])) . "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . trimStr($row['incidentdetails'], 80) . "</td>\t\t\t\t\r\r\n\t\t\t\t<td valign='top' nowrap>" . ucwords($row['response']) . "</td>\t\t\r\r\n\t\t\t\t<td valign='top' class='rightListCell'>" . trimStr($row['actiontaken'], 50) . "</td>\t\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "classes/manage_classes/p/%d", 'results') . "</td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    if (!empty($student_details)) {
        echo "<div>" . $student_details['firstname'] . " has not had any disciplinary incidents so far. Click <a class='fancybox fancybox.ajax' href='" . base_url() . "discipline/load_incident_form/s/" . $i . "')' title='Click to add a class'><i>here</i></a> to add an incident</div>";
    } else {
        echo "<div>No disciplinary incidents have been registered so far. Click <a class='fancybox fancybox.ajax' href='" . base_url() . "discipline/load_incident_form')' title='Click to add a class'><i>here</i></a> to add a new incident</div>";
    }
}
예제 #28
0
}
?>
</td>
</tr>
</table>
</div><br /><br />
<?php 
if (!empty($page_list)) {
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>\r\r\n          \t<tr>\r\r\n\t\t\t<td class='listheader' nowrap>Date</td>\r\r\n           \t<td class='listheader' nowrap>Item Name</td>\r\r\n\t\t\t<td class='listheader' nowrap>Supplier</td>\r\r\n\t\t\t<td class='listheader' nowrap>Invoice Number</td>\r\r\n\t\t\t<td class='listheader' nowrap>Quantity</td>\r\r\n\t\t\t<td class='listheader' nowrap>Price</td>\r\r\n\t\t\t</tr>";
    $counter = 0;
    $sum = 0;
    foreach ($page_list as $row) {
        $price = $row['price'] * $row['quantity'];
        $sum += $price;
        #Show one row at a time
        echo "<tr style='" . get_row_color($counter, 2) . "'>";
        echo "\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . date("j M, Y", GetTimeStamp($row['datecreated'])) . "</td>\t\t\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['itemname'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['supplier'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top'>" . $row['invoicenumber'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top' align='right'>" . $row['quantity'] . "</td>\r\r\n\t\t\r\r\n\t\t<td valign='top' align='right'>" . number_format($price, 0, '.', ',') . "</td>\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t<tr>\r\r\n\t\t<td valign='top' colspan='5' ><b>Total</b></td>\r\r\n\t\t<td valign='top' colspan='1' align='right'><b>" . number_format($sum, 0, '.', ',') . "</b></td>\r\r\n\t</tr>\r\r\n\t</table>";
} else {
    echo format_notice("There are no purchases data matching that criteria at the moment.");
}
?>
<br /><br />
<?php 
$this->load->view('incl/footer');
?>

</body>
</html>
예제 #29
0
    $counter = 0;
    foreach ($page_list as $row) {
        #Get number of users in each group
        $staff = get_group_members($this, $row['id']);
        #Show one row at a time
        echo "<tr id='listrow-" . $row['id'] . "' class='listrow' style='" . get_row_color($counter, 2) . "'>\r\r\n\t\t<td class='leftListCell rightListCell' valign='top' nowrap>";
        #if(check_user_access($this,'delete_deal')){
        echo "<a href='javascript:void(0)' onclick=\"asynchDelete('" . base_url() . "user/delete_staff_group/i/" . encryptValue($row['id']) . "', 'Are you sure you want to remove this staff group? \\nThis operation can not be undone. \\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.','listrow-" . $row['id'] . "');\" title=\"Click to remove this staff group.\"><img src='" . base_url() . "images/delete.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "user/load_staff_groups_form/i/" . encryptValue($row['id']) . "' title=\"Click to edit this group's details.\"><img src='" . base_url() . "images/edit.png' border='0'/></a>";
        #}
        #if(check_user_access($this,'update_deals')){
        echo " &nbsp;&nbsp; <a class='fancybox fancybox.ajax' href='" . base_url() . "user/manage_staff_group_rights/i/" . encryptValue($row['id']) . "' title=\"Click to edit this group's rights.\"><img src='" . base_url() . "images/user_group_settings.png' border='0'/></a>";
        #}
        echo "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . $row['groupname'] . "</td>\t\t\r\r\n\t\t\t\t<td valign='top'>" . substr($row['comments'], 0, 20) . "..</td>\r\r\n\t\t\t\t<td valign='top'>" . $staff->num_rows() . "</td>\r\r\n\t\t\t\t<td class='rightListCell' valign='top'>" . date("j M, Y", GetTimeStamp($row['dateadded'])) . "</td>\t\t\r\r\n\t\t\t</tr>";
        $counter++;
    }
    echo "<tr>\r\r\n\t\t<td colspan='5' align='right'  class='layer_table_pagination'>" . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "user/manage_staff_groups/p/%d", "user-groups-results") . "</td></tr></table>";
} else {
    echo "<div>No staff groups have been created.<br />Click <a class='fancybox fancybox.ajax' href='" . base_url() . "user/load_staff_groups_form')' title='Click to add a user'><i>here</i></a> to create a staff group</div>";
}
?>

            
   
        </td>
        </tr>
      
    </table>
</div>	
예제 #30
0
    exit;
}
?>

                    </td>
                  </tr>
                  
                  <tr>
                    <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Date of Return:<?php 
echo $indicator;
?>
</td>
                    <td class="field" nowrap>
                    	<?php 
if (!empty($isview)) {
    echo "<span class='viewtext'>" . date("D, j M, Y", GetTimeStamp($formdata['returndate'])) . "</span>";
} else {
    echo get_required_field_wrap($requiredfields, 'returndate');
    ?>

								<input type="text" name="returndate" id="returndate" class="textfield datepicker" size="30">
								  
						<?php 
    echo get_required_field_wrap($requiredfields, 'returndate', 'end');
}
?>

                  	</td>
                  </tr>
                  
                  <tr>