Example #1
0
 function send_cron_mail()
 {
     # Get the passed details into the form data array if any
     $urldata = $this->uri->uri_to_assoc(4, array('type'));
     # Pick all assigned data
     $data = assign_to_data($urldata);
     if (isset($data['type'])) {
         #The daily audit trail email
         if ($data['type'] == 'help') {
             $data['thedate'] = date('Y-m-d', strtotime('yesterday'));
             $query = $this->Query_reader->get_query_by_code('search_help_table', array('searchfield' => 'content', 'phrase' => 'topic'));
             $result = $this->db->query($query);
             $data['searchdata'] = $result->result_array();
             $data['section_name'] = 'search help';
             if ($result) {
                 #Email specs
                 $data['subject'] = "Help for " . $data['thedate'];
                 $data['msg_header'] = "Below is the system help for " . $data['thedate'];
                 $data['send_from'] = '*****@*****.**';
                 $data['from_email_name'] = SITE_TITLE;
                 $data['send_to'] = SITE_ADMIN_MAILID;
                 $data['auto_gen'] = 'Y';
                 $data['area'] = 'searchhelp';
                 $data['send_action'] = 'searchhelp';
                 $this->load->view('incl/addons', $data);
             }
         }
         #TODO: Add other email functions here
         if (!$result) {
             echo format_notice("ERROR: An error occured while sending the " . $data['section_name'] . " notifications.");
         }
     } else {
         echo format_notice("ERROR: No email type was specified.");
     }
 }
Example #2
0
 function changepassword()
 {
     $old_pw = $_POST["old_password"];
     $new_pw = $_POST["new_password"];
     $con_pw = $_POST["confirm_password"];
     if ($old_pw == "") {
         print "ERROR: " . format_error("Old password cannot be blank.");
         return;
     }
     if ($new_pw == "") {
         print "ERROR: " . format_error("New password cannot be blank.");
         return;
     }
     if ($new_pw != $con_pw) {
         print "ERROR: " . format_error("Entered passwords do not match.");
         return;
     }
     $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]);
     if (method_exists($authenticator, "change_password")) {
         print format_notice($authenticator->change_password($_SESSION["uid"], $old_pw, $new_pw));
     } else {
         print "ERROR: " . format_error("Function not supported by authentication module.");
     }
 }
Example #3
0
        //Format grading scale data
        $grading_scale_info = '';
        if (!empty($grading_scale_details)) {
            $grading_scale_info = '<div><b>Grading scale details</b></div>' . '<table cellpadding="5" cellspacing="0">' . '<tr class="listheader">' . '<td>Range</td>' . '<td>Grade</td>' . '<td>Value</td>' . '</tr>';
            $grade_counter = 0;
            $js_grade_ranges = '';
            foreach ($grading_scale_details as $grading_scale_detail) {
                $grading_scale_info .= '<tr id="grade_scale_row_' . $grading_scale_detail['id'] . '" ' . ($grade_counter % 2 == 0 ? 'class="stripe grade_scale_row"' : 'class="grade_scale_row"') . '>' . '<td>' . $grading_scale_detail['mingrade'] . '-' . $grading_scale_detail['maxgrade'] . '</td>' . '<td>' . $grading_scale_detail['symbol'] . '</td>' . '<td>' . $grading_scale_detail['value'] . '</td>' . '</tr>';
                $grade_counter++;
            }
            $grading_scale_info .= '</table>';
        } else {
            $grading_scale_info = '<div>' . format_notice('WARNING: No grading scale has been defined') . '</div>';
        }
        $average_mark = number_format($total_mark / $counter, 2);
        echo '<tr>' . '<td colspan="4">' . '<input type="hidden" name="sm" value="' . encryptValue('true') . '" />' . '<input type="hidden" name="s" value="' . encryptValue($subject['id']) . '" />' . '<input type="hidden" name="c" value="' . encryptValue($class['id']) . '" />' . '<input type="hidden" name="e" value="' . (!empty($exam['id']) ? encryptValue($exam['id']) : '') . '" />' . '</td></tr>' . '<tr>' . '<td align="right"><b>Average Mark: </b></td>' . '<td colspan="3">' . '<input type="test" size="4" class="average_mark" readonly="readonly" value="' . $average_mark . '" id="average-mark" />' . '</td></tr>' . '<tr><td colspan="4">&nbsp;</td></tr>' . '<tr><td colspan="4"><input type="button" value="Save" id="save-marks" class="button" /></td></tr>' . '<tr><td colspan="4">&nbsp;</td></tr>' . '<tr><td colspan="4">' . $grading_scale_info . '</td></tr>';
    } else {
        $counter = 0;
        foreach ($page_list as $row) {
            echo '<tr class="mark_sheet_row" id="student_grades_' . $row['studentid'] . '" style="' . get_row_color($counter, 2) . '">
										<td colspan="4"><div>' . $row['studentname'] . '</div></td>
									 </tr>';
            $counter++;
        }
    }
} else {
    echo '<tr><td colspan="3">' . format_notice('WARNING: No ' . $class['class'] . ' students have been registered for ' . $subject['subject'] . ' in ' . $term['term'] . ', ' . $term['year']) . '</td></tr>';
}
?>

            </table>
Example #4
0
    }
    ?>
"/>
                      <?php 
    echo get_required_field_wrap($requiredfields, 'firstname', 'end');
}
?>

                    </td>
                    <td rowspan="9" nowrap class="field" valign="top">
                    	<table>
                        <tr>
                          <td colspan="2" align="right">
                          <div id="image-upload-status">Uploading photo..</div>
                          <div id="image-upload-error"><?php 
echo format_notice('ERROR: The file could not be uploaded.');
?>
</div>
                          <img id="profile-pic" src="<?php 
echo base_url() . (empty($studentdetails['photo']) ? 'images/no-photo.jpg' : 'downloads/students/' . $studentdetails['photo']);
?>
" class="profile-pic" />
                          
                          
                          	<?php 
if (!empty($isview)) {
    echo "<span class='viewtext'>" . $userdetails['telephone'] . "</span><input type='hidden' name='telephone' id='telephone' value='" . $userdetails['telephone'] . "' />";
} else {
    ?>

                      <div id="add-image" class="button" style="width:100px; margin-top:10px">
  <td>&nbsp;</td><td class='body-title' style='padding:15px;'>Register</td><td>&nbsp;</td>
</tr>
<?php 
$this->load->view('addons/step_ribbon', array('step' => '2'));
?>

<tr>
  <td>&nbsp;</td><td style='height:calc(85vh - 214px); vertical-align: top;'>
  
  <table class='normal-table'><tr>
  	<td>
    <table class='microform ignoreclear' style='width:100%;max-width:1000px;'>
    <tr><td class='dark-grey'>To help us serve you better, fill out this form as completely as possible.</td></tr>
    <?php 
if (!empty($msg)) {
    echo "<tr><td style='text-align:left;'>" . format_notice($this, $msg) . "</td></tr>";
}
?>
    <tr><td class='bold'>a) About Your Organization:</td></tr>
    <tr><td class='two-fields'>
    <div><input type='text' id='businessname' name='businessname' placeholder='Your Organization Name' value='<?php 
echo $this->native_session->get('businessname');
?>
' /></div>
    <div><select id='category__businesscategories' name='category__businesscategories' class='drop-down'>
    <?php 
echo get_option_list($this, 'businesscategories', 'select', '', array('selected' => $this->native_session->get('category__businesscategories') ? $this->native_session->get('category__businesscategories') : '', 'type' => $this->native_session->get('organizationtype')));
?>
    </select>
    
    <input type='hidden' id='organizationtype' name='organizationtype' value='<?php 
Example #6
0
function print_notice($msg)
{
    return print format_notice($msg);
}
Example #7
0
                          <input type="text" name="select_book" id="select-book" class="textfield" autocomplete="off" size="30" />
                          <input name="select_book_searchby" type="hidden" id="select_book_searchby" value="borrower" />
                          <div id='select_book_results' style='max-height: 380px; overflow:hidden; position:absolute; border: 1px solid #98CBFF; background-color: #F7F7F7; display:none;'></div>
                            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <div id="selected-books" style="width:100%">
                    <table id="selected-books-table" cellpadding="9" cellspacing="0">
                        <tr id="selected-books-header">
                            <td class="borrower_details_help">
                                <?php 
print format_notice("HELP: Search and select available books to add");
?>

                            </td>
                        </tr>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
        	<td colspan="2" align="center">
            	<input type="hidden" name="save" id="saveitem" value="Save" class="button"/>
            	<input type="submit" style="display:none" name="savebutton" id="save-borrow-transaction" value="Save" class="button"/>
            </td>
Example #8
0
<tr>
  <td>&nbsp;</td>
  <td class='one-column body-form-area microform ignoreclear'>



<?php 
if (!empty($view)) {
    ?>

<table> 

<?php 
    if ($msg) {
        echo "<tr><td>" . format_notice($this, $msg) . "</td></tr>";
    }
    ?>
 
 <tr><td class='bold'>a) Your Account Details:</td></tr>
    <tr><td class='two-fields'>
    <div><?php 
    if (!empty($user['photo_url'])) {
        echo "<div style='background: url(" . base_url() . 'assets/uploads/' . $user['photo_url'] . ") no-repeat center top;' class='large-user-photo'></div>";
    } else {
        echo "NO PHOTO";
    }
    ?>
</div>
    <div></div>
    </td></tr>
Example #9
0
               <div style="margin-top:5px">
               
               <a href="" onclick="getForms('registration_form')" class="smallbrownlinks"><b>Register</b></a>&nbsp; | &nbsp;<a href="#" class="smallbrownlinks">Forgot Password</a>&nbsp; | &nbsp;<a href="#" class="smallbrownlinks">Help</a>
               </div>
  
                
 <?php 
if ($error_msg != '') {
    ?>
             <div style="font-size:12px; margin-top:10px" class="error">
            <?php 
    echo $error_msg;
    ?>
             </div>
             
             <?php 
}
if ($this->session->userdata('error_msg') && $this->session->userdata('error_msg') != '') {
    ?>
          
          		<div class="error"><?php 
    echo $this->session->userdata('error_msg');
    ?>
</div>
		 
		 <?php 
    $this->session->unset_userdata(array('error_msg' => ''));
}
if (isset($msg)) {
    echo "<div>" . format_notice($msg) . "</div>";
}
Example #10
0
              <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                <tr>
                  <td colspan="5" align="left" class="bottomtableborder_heading"><b>Step 3 - Company Trucks </b></td>
                </tr>
                <tr>
                  <td align="left"><b>Add New:</b> </td>
                  <td colspan="4" align="left"><input name="sub" type="submit" class="button" id="" value="General"/>
                    <input name="save2" type="submit" class="button" id="save2" value="Specifications"/>
                    <input name="save3" type="submit" class="button" id="save3" value="Purchase"/>
                    <input name="save4" type="submit" class="button" id="save4" value="Insurance"/>
                    <input name="save7" type="submit" class="button" id="save7" value="Expirations"/>
                    <input name="save5" type="submit" class="button" id="save5" value="Photo"/>
                    <input name="save6" type="submit" class="button" id="save6" value="Files"/></td>
                  </tr>
				<?php 
echo "<tr><td colspan='5'>" . format_notice($data['msg']) . "</td></tr>";
?>
                <tr>
                  <td width="22%" align="left" nowrap="nowrap">Plate Number:</td>
                  <td width="31%" align="left"><?php 
if (isset($action)) {
    echo "<b>" . $companytruckdetails['regnumber'] . "</b>";
} else {
    ?>
                    <input name="companyid" type="hidden" value="<?php 
    if (isset($userdetails['companyid'])) {
        echo $userdetails['companyid'];
    }
    ?>
" /><input name="regnumber" type="text" class="textfield" id="regnumber" value="<?php 
    if (isset($companytruckdetails['regnumber'])) {
    $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'>" . $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'>" . $row['amount'] . "</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['firstname'] . " " . $row['lastname'] . "</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></td>
            </tr>
          
        </table>
      </form>
            
            </td>
            </tr>
          
Example #12
0
            <table width="100" border="0" cellspacing="0" cellpadding="8">
				  <tr>
                    <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">Book title :<?php 
echo $indicator;
?>
</td>
                    <td class="field" nowrap>
                    <input name="callbackElement" id="call-back-element" value="stock-title-form-wrap" type="hidden" />
                    <input name="listLinkToRefresh" id="list-link-to-refresh" value="manage-stock" type="hidden" />
                      <?php 
if (!empty($title_info)) {
    print $title_info['stocktitle'] . "<span class='viewtext'> <i>by</i> " . $title_info['author'] . "</span>";
    print "<input type='hidden' name='bookid' value='" . encryptValue($title_info['stockid']) . "' id='bookid' />";
} else {
    print format_notice("WARNING: Could not retrieve title information");
    exit;
}
?>

                    </td>
                  </tr>

                  <tr>
                    <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">ISBN Number :<?php 
echo $indicator;
?>
</td>
                    <td class="field" nowrap>
                      <?php 
if (!empty($isview)) {
Example #13
0
            <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <a href="javascript:;" class="icon-remove"></a>
            </span>
    </div>
    <div class="widget-body" id="results">
      <?php 
#print_r($manage_bes);
if (!empty($manage_bes)) {
    print '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th width="5%"></th>' . '<th>Disposal Serial Number </th>' . '<th class="hidden-480">Name of Buyer</th>' . '<th class="hidden-480">Contract Amount</th>' . '<th class="hidden-480" colspan="3">Date Signed </th>' . '<th class="hidden-480">Date Added</th>' . '<th></th>' . '</tr>' . '</thead>' . '<tbody>';
    #   print_r($manage_bes['page_list']);
    foreach ($manage_bes['page_list'] as $row) {
        #print_r($row);
        #  print_r($row['bid_id']); exit();
        print '<tr><td width="5%">';
        print '</td>' . '<td>' . $row['disposal_serial_no'] . '</td>';
        print '<td class="hidden-480">';
        print $row['providernames'] . '</td>' . '<td class="hidden-480">' . number_format($row['contractamount']) . $row['currency'] . '</td>';
        print '<td colspan="3">';
        print date('Y-M-d', strtotime($row['datesigned']));
        print '</td><td>' . date('Y-M-d', strtotime($row['dateadded'])) . '<td><td></td>';
        '</tr>';
    }
    print '</tbody></table>';
    print '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $manage_bes['rows_per_page'], $manage_bes['current_list_page'], base_url() . "receipts/manage_bebs/p/%d") . '</div>';
} else {
    print format_notice('WARNING: No bid invitations have been added to the system');
}
?>
    </div>
</div>
?>
" />
                            <span class="add-on"><i class="icon-calendar"></i></span>
                        </div>
                    </div>
                </div>                                           
            <div class="form-actions">
                <button type="submit" name="view" value="view-report" class="btn blue"><i class="icon-ok"></i> View report</button>
                <button type="submit" name="view_pdf" value="view-pdf" class="btn"><i class="icon-file"></i> View PDF</button>
			</div>
        </form>
        <!-- END FORM-->
        
        <div id="report-results">
        	<?php 
if (!empty($page_list)) {
    print '<div class="row-fluid">' . '<div class="span" style="text-align:center"><h4>' . $report_heading . '</h4></div>' . '</div>' . (!empty($sub_heading) ? '<div class="row-fluid">' . '<div class="span" style="text-align:center"><h5><i>' . $sub_heading . '</i></h5></div>' . '</div>' : '') . '<div class="row-fluid">' . '<div class="span2 pull-left" style="text-align:right; font-weight:bold">Financial year:</div>' . '<div class="span6 pull-left" style="text-align:left">' . $financial_year . '</div>' . '</div>' . (!empty($report_period) ? '<div class="row-fluid">' . '<div class="span2 pull-left" style="text-align:right; font-weight:bold">Reporting period:</div>' . '<div class="span6 pull-left" style="text-align:left">' . $report_period . '</div>' . '</div>' : '');
    print '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th align="left">PDE name</th>' . '<th class="hidden-480">Procurement ref. no.</th>' . '<th class="hidden-480">Subject of procurement</th>' . ($formdata['ifb_report_type'] == 'BER' ? '<th>Procurement method <br /> (Threshhold)</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th style="text-align:right">Estimated cost(UGX)</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th>IFB Date</th>' : '') . '<th>Bid submission dead line</th>' . ($formdata['ifb_report_type'] == 'BER' ? '<th>Bid submission duration</th>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<th>No. of bids received</th>' : '') . '</tr>' . '</thead>' . '</tbody>';
    foreach ($page_list as $row) {
        print '<tr>' . '<td>' . $row['pdename'] . '</td>' . '<td>' . $row['procurement_ref_no'] . '</td>' . '<td>' . $row['subject_of_procurement'] . '</td>' . ($formdata['ifb_report_type'] == 'BER' ? '<td>' . $row['procurement_method_title'] . ' (' . $row['biddingperiod'] . ')</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td style="text-align: right">' . (is_numeric($row['estimated_amount']) ? number_format($row['estimated_amount'] * $row['exchange_rate'], 0, '.', ',') : $row['estimated_amount']) . '</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td style="white-space: nowrap">' . custom_date_format('d M, Y', $row['invitation_to_bid_date']) . '</td>' : '') . '<td>' . custom_date_format('d M, Y', $row['bid_submission_deadline']) . ' at ' . custom_date_format('h:i A', $row['bid_submission_deadline']) . '</td>' . ($formdata['ifb_report_type'] == 'BER' ? '<td>' . $row['proposal_submission_date_duration'] . '</td>' : '') . ($formdata['ifb_report_type'] == 'PIFB' ? '<td>' . $row['numOfBids'] . '</td>' : '') . '</tr>';
    }
    print '</tbody></table>';
    print '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $rows_per_page, $current_list_page, base_url() . "admin/manage_users/p/%d") . '</div>';
} elseif (!empty($formdata)) {
    print format_notice('WARNING: Your search criteria does not match any results');
}
?>
        </div>
        
    </div>
</div>
Example #15
0
<table>
<?php 
$stopHtml = "<input name='paginationdiv__bid_stop' id='paginationdiv__bid_stop' type='hidden' value='1' />";
if (!empty($list)) {
    echo "<tr><th>Date Posted</th><th>Procuring/Disposing Entity</th><th>Procurement Reference Number</th><th>Subject</th>";
    if (!$this->native_session->get('__view')) {
        echo "<th>Selected Provider</th><th>Date BEB Expires</th><th>Status</th><th>BEB Price</th>";
    }
    echo "</tr>";
    $listCount = count($list);
    $i = 0;
    foreach ($list as $row) {
        $i++;
        echo "<tr>\n\t\t\t\t<td>" . date(SHORT_DATE_FORMAT, strtotime($row['last_updated'])) . "</td>\n\t\t\t\t<td>" . $row['pde'] . "</td>\n\t\t\t\t<td>" . $row['reference_number'] . "</td>\n\t\t\t\t<td><a href='" . base_url() . 'bids/view_one/d/' . $row['bid_id'] . "' class='shadowbox closable blue-box'>" . $row['tender_notice'] . "</a>";
        if (!$this->native_session->get('__view')) {
            echo "</td>\n\t\t\t\t<td>" . $row['provider'] . "</td>\n\t\t\t\t<td>" . ($row['valid_end_date'] != '0000-00-00' ? date(SHORT_DATE_FORMAT, strtotime($row['valid_end_date'])) : 'NONE') . "</td>\n\t\t\t\t<td>" . strtoupper(str_replace('_', ' ', $row['status'])) . "</td>\n\t\t\t\t<td>" . $row['bid_currency'] . format_number($row['bid_amount'], 3, 0);
        }
        if ($i == $listCount && (!empty($n) && $listCount < $n || empty($n) && $listCount < NUM_OF_ROWS_PER_PAGE)) {
            echo $stopHtml;
        }
        echo "</td>\n\t\t\t\t</tr>";
    }
} else {
    echo "<tr><td>" . format_notice($this, 'WARNING: There are no best evaluated bidders in this list.') . $stopHtml . "</td></tr>";
}
?>
</table>
Example #16
0
echo "<table>";
if (!empty($list)) {
    echo "<tr><th style='width:1%;'>&nbsp;</th>" . ($this->native_session->get('__user_type') == 'pde' ? "" : "<th>PDE</th>") . "<th>Name</th><th>Amount</th><th>Progress</th><th>Date Started</th><th>Status</th><th>Last Updated</th><th>Last Updated By</th></tr>";
    foreach ($list as $row) {
        $i++;
        echo "<tr> \n\t\t<td>";
        if ($this->native_session->get('__user_type') != 'provider') {
            echo "<input id='select_" . $row['contract_id'] . "' name='selectall[]' type='checkbox' value='" . $row['contract_id'] . "' class='bigcheckbox'><label for='select_" . $row['contract_id'] . "'></label>";
        } else {
            echo "&nbsp;";
        }
        echo "</td>";
        if ($this->native_session->get('__user_type') != 'pde') {
            echo "<td><a href='" . base_url() . "accounts/view_pde/d/" . $row['pde_id'] . "' class='shadowbox closable'>" . html_entity_decode($row['pde'], ENT_QUOTES) . "</a></td>";
        }
        echo "<td><a href='" . base_url() . "tenders/view_one/d/" . $row['tender_id'] . "' class='shadowbox closable'>" . html_entity_decode($row['tender_notice'], ENT_QUOTES) . "</a></td>\n\t\t<td>" . $row['contract_currency'] . format_number($row['contract_amount'], 3) . "</td>\n\t\t<td><div style='white-space:nowrap;'>" . $row['progress_percent'] . '%' . ($row['has_notes'] == 'Y' ? " <a href='" . base_url() . "contracts/notes/d/" . $row['contract_id'] . "' class='shadowbox closable'>Notes</a>" : '') . "</div>";
        # allow a provider to add a note only when the contract is active
        if ($this->native_session->get('__user_type') != 'provider' || $row['status'] == 'active' && $this->native_session->get('__user_type') == 'provider') {
            echo "<div class='green-box btn shadowbox' data-url='" . base_url() . "contracts/add_note/d/" . $row['contract_id'] . "'>Add Note</div>";
        }
        echo "</td>\n\t\t<td>" . date(SHORT_DATE_FORMAT, strtotime($row['date_started'])) . "</td>\n\t\t<td>" . strtoupper($row['status']) . "</td>\n\t\t<td>" . date(FULL_DATE_FORMAT, strtotime($row['last_updated'])) . "</td>\n\t\t<td>" . html_entity_decode($row['last_updated_by'], ENT_QUOTES);
        # Check whether you need to stop the loading of the next pages
        if ($i == $listCount && (!empty($n) && $listCount < $n || empty($n) && $listCount < NUM_OF_ROWS_PER_PAGE)) {
            echo $stopHtml;
        }
        echo "</td>\n\t\t</tr>";
    }
} else {
    echo "<tr><td>" . format_notice($this, 'WARNING: There are no contracts in this list.') . $stopHtml . "</td></tr>";
}
echo "</table>";
Example #17
0
 function add()
 {
     $login = $this->dbh->escape_string(trim($_REQUEST["login"]));
     $tmp_user_pwd = make_password(8);
     $salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
     $pwd_hash = encrypt_password($tmp_user_pwd, $salt, true);
     $result = $this->dbh->query("SELECT id FROM ttrss_users WHERE\n\t\t\t\tlogin = '******'");
     if ($this->dbh->num_rows($result) == 0) {
         $this->dbh->query("INSERT INTO ttrss_users\n\t\t\t\t\t(login,pwd_hash,access_level,last_login,created, salt)\n\t\t\t\t\tVALUES ('{$login}', '{$pwd_hash}', 0, null, NOW(), '{$salt}')");
         $result = $this->dbh->query("SELECT id FROM ttrss_users WHERE\n\t\t\t\t\tlogin = '******' AND pwd_hash = '{$pwd_hash}'");
         if ($this->dbh->num_rows($result) == 1) {
             $new_uid = $this->dbh->fetch_result($result, 0, "id");
             print format_notice(T_sprintf("Added user <b>%s</b> with password <b>%s</b>", $login, $tmp_user_pwd));
             initialize_user($new_uid);
         } else {
             print format_warning(T_sprintf("Could not create user <b>%s</b>", $login));
         }
     } else {
         print format_warning(T_sprintf("User <b>%s</b> already exists.", $login));
     }
 }
    $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>
      </form>
            
            </td>
            </tr>
          
Example #19
0
            <td colspan="2" style="padding-top:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="pageheader" nowrap>My Settings</td>
    <td align="right">&nbsp;</td>
  </tr>
</table>
 </td>
            </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">
              <tr>
                <td colspan="2" nowrap>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <?php 
if (isset($msg)) {
    echo "<tr><td height='10'></td></tr>" . "<tr><td>" . format_notice($msg) . "</td></tr>";
}
?>

			  
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="8">
				  <tr>
				    <td colspan="3" style="padding:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="5" class="lightergreybg toptablecurves">
                     <tr>
                <td colspan="2" class="sectiontitle" style="padding:8px;">Profile Details:</td>
                </tr>
                    </table></td>
				    </tr>
				  <tr>
                    <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px" width="1%">First Name:<?php 
Example #20
0
                  </tr>

                </table>

           </td>

              </tr>

              <tr>

              	<td colspan="" height="50">&nbsp;

                	<?php 
if (!empty($msg)) {
    echo format_notice($msg);
}
?>

                </td>

              </tr>

            

          </table>   

          </fieldset>      </td>

          </tr>
<?php

echo "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.css' type='text/css' media='screen' />";
echo "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.list.css' type='text/css' media='screen' />";
echo "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.form.css' type='text/css' media='screen' />";
if (!empty($msg)) {
    echo format_notice($this, $msg);
} else {
    echo "<table>\n<tr><td colspan='2' class='h2 bold'>" . $plan['name'] . "</td></tr>\n<tr><td colspan='2'>" . $plan['details'] . "</td></tr>\n<tr><td class='label'>PDE</td><td>" . $plan['pde'] . "</td></tr>\n<tr><td class='label'>Financial Period</td><td>" . date('Y', strtotime($plan['financial_year_start'])) . " TO " . date('Y', strtotime($plan['financial_year_end'])) . "</td></tr>\n<tr><td class='label'>Document</td><td><a href='" . base_url() . "procurement_plans/download/d/" . $plan['procurement_plan_id'] . "'>Download</a></td></tr>";
    if ($this->native_session->get('__user_type') && $this->native_session->get('__user_type') == 'admin') {
        echo "<tr><td class='label'>Status</td><td>" . strtoupper($plan['status']) . "</td></tr>\n<tr><td class='label'>Date Entered</td><td>" . date(SHORT_DATE_FORMAT, strtotime($plan['date_entered'])) . "</td></tr>\n<tr><td class='label'>Entered By</td><td>" . $plan['entered_by'] . "</td></tr>\n<tr><td class='label'>Last Updated</td><td>" . date(SHORT_DATE_FORMAT, strtotime($plan['last_updated'])) . "</td></tr>\n<tr><td class='label'>Last Updated By</td><td>" . $plan['last_updated_by'] . "</td></tr>";
    }
    echo "</table>";
}
Example #22
0
            $datdd = $this->Query_reader->get_query_by_code('subject_num_of_students', array('subject' => '|' . $subject['subjectid'] . '|', 'class' => $subject['classid'], 'term' => $current_term['id']));
            # print_r($datdd); echo'<br/>';
            $num_of_students = $this->Query_reader->get_row_as_array('subject_num_of_students', array('subject' => '|' . $subject['subjectid'] . '|', 'class' => $subject['classid'], 'term' => $current_term['id']));
            if ($num_of_students['numOfStudents'] > 0) {
                echo '<li id="grade_subject_' . $subject['subjectid'] . '_' . $subject['classid'] . '_' . $current_term['id'] . '" class="ying_yang_bg">' . $subject['subjectname'] . ', ' . $subject['classname'] . ' <i title="' . $num_of_students['numOfStudents'] . ' ' . $subject['classname'] . ' students registered for ' . $subject['subjectname'] . '">(' . $num_of_students['numOfStudents'] . ')</i></li>';
            }
        }
    } else {
        echo '<li class="ying_yang_bg no_classes_assigned">No classes have been assigned to you.</li>';
    }
    ?>

                </ul>
            <?php 
} else {
    echo '<div>' . format_notice('WARNING: No active term') . '</div>';
}
?>
            
      </div>
        
        <div id="previous-term-gradebook">
            <div id="previous-terms-title" title="Click to view performance of previous terms" class="ying_yang_bg">
                <table cell-padding="0">
                    <tr>
                        <td>Previous Terms</td>
                        <td><div class="more_arrow"></div></td>
                    </tr>
                </table>
            </div>
            <?php 
Example #23
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>
Example #24
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>
Example #25
0
 function weeklyreport($level, $data = array())
 {
     switch ($level) {
         case 'ppda':
             $search_str = '  ';
             #Get the paginated list of bid invitations
             $results = paginate_list($this, $data, 'weekly_IFB_report', array('orderby' => '', 'searchstring' => '' . $search_str), 1000);
             # print_r($results); exit();
             $table = "<div>";
             if (!empty($results['page_list'])) {
                 $table .= '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th width="5%"></th>' . '<th>Procurement Ref. No</th>' . '<th class="hidden-480">Subject of procurement</th>' . '<th class="hidden-480">Bid security</th>' . '<th class="hidden-480">Bid invitation date</th>' . '<th class="hidden-480">Addenda</th>' . '<th>Status</th>' . '<th>Published by</th>' . '<th>Date Added</th>' . '</tr>' . '</thead>' . '</tbody>';
                 foreach ($results['page_list'] as $row) {
                     $this->session->unset_userdata('pdeid');
                     $status_str = '';
                     $addenda_str = '[NONE]';
                     $delete_str = '';
                     $edit_str = '';
                     if (!empty($level) && $level == 'active') {
                         $delete_str = '<a title="Delete bid invitation" href="javascript:void(0);" onclick="confirmDeleteEntity(\'' . base_url() . 'bids/delete_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '\', \'Are you sure you want to delete this bid invitation?\\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.\')"><i class="icon-trash"></i></a>';
                         $edit_str = '<a title="Edit bid details" href="' . base_url() . 'bids/load_bid_invitation_form/i/' . encryptValue($row['bidinvitation_id']) . '"><i class="icon-edit"></i></a>';
                     }
                     if ($row['bid_approved'] == 'Y' && get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') < 0) {
                         $status_str = 'Bid evaluation | <a title="Select BEB" href="' . base_url() . 'bids/approve_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[Select BEB]</a>';
                     } elseif ($row['bid_approved'] == 'N') {
                         $status_str = 'Not published | <a title="Publish IFB" href="' . base_url() . 'bids/approve_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[Publish IFB]</a>';
                     } elseif ($row['bid_approved'] == 'Y' && get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') > 0) {
                         $status_str = 'Bidding closes in ' . get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') . ' days | <a title="view IFB document" href="' . base_url() . 'bids/view_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[View IFB]</a>';
                         $addenda_str = '<a title="view addenda list" href="' . base_url() . 'bids/view_addenda/b/' . encryptValue($row['bidinvitation_id']) . '">[View Addenda]</a> | <a title="Add addenda" href="' . base_url() . 'bids/load_ifb_addenda_form/b/' . encryptValue($row['bidinvitation_id']) . '">[Add Addenda]</a>';
                     } else {
                     }
                     $table .= '<tr>' . '<td></td>' . '<td>' . format_to_length($row['procurement_ref_no'], 40) . '</td>' . '<td>' . format_to_length($row['subject_of_procurement'], 50) . '</td>' . '<td>' . (is_numeric($row['bid_security_amount']) ? number_format($row['bid_security_amount'], 0, '.', ',') . ' ' . $row['bid_security_currency_title'] : (empty($row['bid_security_amount']) ? '<i>N/A</i>' : $row['bid_security_amount'])) . '</td>' . '<td>' . custom_date_format('d M, Y', $row['invitation_to_bid_date']) . '</td>' . '<td>' . $addenda_str . '</td>' . '<td>' . $status_str . '</td>' . '<td>' . (empty($row['approver_fullname']) ? 'N/A' : $row['approver_fullname']) . '</td>' . '<td>' . custom_date_format('d M, Y', $row['bid_dateadded']) . '</td>' . '</tr>';
                 }
                 $table .= '</tbody></table>';
                 $table .= '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $results['rows_per_page'], $results['current_list_page'], base_url() . "bids/manage_bid_invitations/" . $level . "/p/%d") . '</div>';
             } else {
                 $table .= format_notice('WARNING: No bid invitations expiring this week');
             }
             $table .= "</div>";
             $adons = '';
             //$entity =  $records['pdeid'];
             //$this->session->set_userdata('pdeid',$entity);
             $datasx = $this->session->set_userdata('level', 'ppda');
             $entityname = '';
             $entityname = '';
             $adons = date('d-m');
             $level = "Procurement";
             # exit('moooooo');
             $titles = "Weekly  report on expiring IFBs of ITP";
             $body = " " . html_entity_decode($table);
             $permission = "view_bid_invitations";
             $xcv = 0;
             push_permission($titles, $body, $level, $permission);
             #end
             break;
         case 'ifb':
             $search_str = '';
             # code...
             $querys = $this->db->query("select distinct b.pdeid,b.pdename,a.* from pdes b inner join   users a on a.pde = b.pdeid  ")->result_array();
             foreach ($querys as $row => $records) {
                 #get the PDE ID " Idividual Pde Ids ";"
                 $search_str = ' AND procurement_plans.pde_id="' . $records['pdeid'] . '"';
                 $results = paginate_list($this, $data, 'weekly_IFB_report', array('orderby' => '', 'searchstring' => '' . $search_str), 1000);
                 # print_r($results); exit();
                 $table = "<div>";
                 if (!empty($results['page_list'])) {
                     $table .= '<table class="table table-striped table-hover">' . '<thead>' . '<tr>' . '<th width="5%"></th>' . '<th>Procurement Ref. No</th>' . '<th class="hidden-480">Subject of procurement</th>' . '<th class="hidden-480">Bid security</th>' . '<th class="hidden-480">Bid invitation date</th>' . '<th class="hidden-480">Addenda</th>' . '<th>Status</th>' . '<th>Published by</th>' . '<th>Date Added</th>' . '</tr>' . '</thead>' . '</tbody>';
                     foreach ($results['page_list'] as $row) {
                         $this->session->unset_userdata('pdeid');
                         $status_str = '';
                         $addenda_str = '[NONE]';
                         $delete_str = '';
                         $edit_str = '';
                         if (!empty($level) && $level == 'active') {
                             $delete_str = '<a title="Delete bid invitation" href="javascript:void(0);" onclick="confirmDeleteEntity(\'' . base_url() . 'bids/delete_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '\', \'Are you sure you want to delete this bid invitation?\\nClick OK to confirm, \\nCancel to cancel this operation and stay on this page.\')"><i class="icon-trash"></i></a>';
                             $edit_str = '<a title="Edit bid details" href="' . base_url() . 'bids/load_bid_invitation_form/i/' . encryptValue($row['bidinvitation_id']) . '"><i class="icon-edit"></i></a>';
                         }
                         if ($row['bid_approved'] == 'Y' && get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') < 0) {
                             $status_str = 'Bid evaluation | <a title="Select BEB" href="' . base_url() . 'bids/approve_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[Select BEB]</a>';
                         } elseif ($row['bid_approved'] == 'N') {
                             $status_str = 'Not published | <a title="Publish IFB" href="' . base_url() . 'bids/approve_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[Publish IFB]</a>';
                         } elseif ($row['bid_approved'] == 'Y' && get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') > 0) {
                             $status_str = 'Bidding closes in ' . get_date_diff(date('Y-m-d'), $row['bid_submission_deadline'], 'days') . ' days | <a title="view IFB document" href="' . base_url() . 'bids/view_bid_invitation/i/' . encryptValue($row['bidinvitation_id']) . '">[View IFB]</a>';
                             $addenda_str = '<a title="view addenda list" href="' . base_url() . 'bids/view_addenda/b/' . encryptValue($row['bidinvitation_id']) . '">[View Addenda]</a> | <a title="Add addenda" href="' . base_url() . 'bids/load_ifb_addenda_form/b/' . encryptValue($row['bidinvitation_id']) . '">[Add Addenda]</a>';
                         } else {
                         }
                         $table .= '<tr>' . '<td></td>' . '<td>' . format_to_length($row['procurement_ref_no'], 40) . '</td>' . '<td>' . format_to_length($row['subject_of_procurement'], 50) . '</td>' . '<td>' . (is_numeric($row['bid_security_amount']) ? number_format($row['bid_security_amount'], 0, '.', ',') . ' ' . $row['bid_security_currency_title'] : (empty($row['bid_security_amount']) ? '<i>N/A</i>' : $row['bid_security_amount'])) . '</td>' . '<td>' . custom_date_format('d M, Y', $row['invitation_to_bid_date']) . '</td>' . '<td>' . $addenda_str . '</td>' . '<td>' . $status_str . '</td>' . '<td>' . (empty($row['approver_fullname']) ? 'N/A' : $row['approver_fullname']) . '</td>' . '<td>' . custom_date_format('d M, Y', $row['bid_dateadded']) . '</td>' . '</tr>';
                     }
                     $table .= '</tbody></table>';
                     $table .= '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $results['rows_per_page'], $results['current_list_page'], base_url() . "bids/manage_bid_invitations/" . $level . "/p/%d") . '</div>';
                 } else {
                     $table .= format_notice('WARNING: No bid invitations expiring this week');
                 }
                 $table .= "</div>";
                 $adons = '';
                 $entity = $records['pdeid'];
                 $this->session->set_userdata('pdeid', $entity);
                 if ($records['usergroup'] > 0) {
                     $level = $records['usergroup'];
                     $this->session->set_userdata('usergroup', $records['usergroup']);
                     // else
                     // $datasx = $this->session->set_userdata('level','ppda');
                 }
                 $entityname = $records['pdename'];
                 $adons = date('d-m');
                 $level = "Procurement";
                 $titles = "Weekly  report on expiring IFBs of " . $entityname . $adons;
                 $body = " " . html_entity_decode($table);
                 $permission = "view_bid_invitations";
                 $xcv = 0;
                 push_permission($titles, $body, $level, $permission, $records['pdeid']);
             }
             break;
         default:
             # code...
             break;
             #  exit();
     }
 }
Example #26
0
<?php

$css = "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.css' type='text/css' media='screen' />" . "<link rel='stylesheet' href='" . base_url() . "assets/css/pss.list.css' type='text/css' media='screen' />";
if (!empty($msg)) {
    echo $css . format_notice($this, $msg);
} else {
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html lang='en'>\n<head><meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t<title>Comments</title>\n    " . $css . "\n</head>\n<body>\n<div id='delete_result'></div>\n<table class='list-table'><tr><th style='width:1%'>&nbsp;</th><th>Comment</th><th>Posted By</th><th>Posted On</th></tr>";
    foreach ($list as $row) {
        echo "<tr id='row_" . $row['comment_id'] . "'>\n<td>";
        if ($this->native_session->get('__user_type') == 'admin' || $this->native_session->get('__user_type') == 'pde' && $this->native_session->get('__organization_id') == $row['entered_by_organization']) {
            echo "<a href='javascript:;' onclick=\"confirmActionToLayer('" . base_url() . "forums/remove_comment/row_id/row_" . $row['comment_id'] . "', 'comments_" . $row['comment_id'] . "', '', 'row_" . $row['comment_id'] . "___delete_result', 'Are you sure you want to remove this comment?')\"><img src='" . IMAGE_URL . "remove_icon.png' border='0'></a>\n\t\n\t<input type='hidden' id='comments_" . $row['comment_id'] . "' name='comments[]' value='" . $row['comment_id'] . "' />";
        } else {
            echo "&nbsp;";
        }
        echo "</td>\n<td>" . $row['comment'] . "</td>\n<td style='vertical-align:top;'>" . $row['entered_by'] . "</td>\n<td style='vertical-align:top;'>" . date(FULL_DATE_FORMAT, strtotime($row['date_added'])) . "</td>\n</tr>";
    }
    echo "</table>\n</div>\n\n<input type='hidden' id='layerid' name='layerid' value='' />";
    echo minify_js('forums__comments', array('jquery-2.1.1.min.js', 'pss.js', 'pss.shadowbox.js', 'pss.fileform.js'));
    echo "</body>\n</html>";
}
Example #27
0
                              
                            </div>
                            

                            
                            
                        </div><hr>';
            #print_r($page_list['page_list']);
            foreach ($page_list['page_list'] as $row) {
                // custom_date_format('d M, Y', $row['dateadded'])
                print '<div class="row  column col-md-13">' . '<div class="col-md-8 procurement_pde"> ' . $row['pdename'] . ' </div>' . '<div class="col-md-4 "> <a class="btn btn-xs btn-primary center"  href="' . base_url() . 'page/disposal_plans/details/' . base64_encode($row['disposalpln_id']) . '">Details of the ' . $row['financial_year'] . ' Annual Disposal Plan </a>' . '</div>' . '</div>' . '<hr>';
            }
            print '<div class="pagination pagination-mini pagination-centered">' . pagination($this->session->userdata('search_total_results'), $page_list['rows_per_page'], $page_list['current_list_page'], base_url() . "page/best_evaluated_bidder/p/%d") . '</div>';
            //   <a id="modal-703202" href="#modal-container-703202" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
        } else {
            print format_notice("ERROR: There are no Disposal Plans");
        }
    }
    ?>
    </div>

     <?php 
}
?>
</div>
                </div>

        </div>
        <?php 
echo $this->load->view('public/includes/footer');
?>
Example #28
0
                            <div class="col-md-2">
                                <b>Subject Of Procurement</b>
                            </div>
                            <div class="col-md-2">
                                <b>Service Provider</b>
                            </div>
                            <div class="col-md-1">&nbsp;</div>
                        </div><hr>';
    foreach ($page_list as $row) {
        #if multiple providers..
        $providername = $row['providernames'];
        if (!empty($row['joint_venture'])) {
            $providername = '';
            $jv_info = $this->db->query('SELECT * FROM joint_venture WHERE jv = "' . $row['joint_venture'] . '"')->result_array();
            if (!empty($jv_info[0]['providers'])) {
                $providers = $this->db->query('SELECT * FROM providers WHERE providerid IN (' . rtrim($jv_info[0]['providers'], ',') . ')')->result_array();
                foreach ($providers as $provider) {
                    $providername .= (!empty($providername) ? ', ' : '') . $provider['providernames'];
                }
            }
        }
        print '<div class="row">' . '<div class="col-md-2"><strong>' . custom_date_format('d M, Y', $row['date_signed']) . '</strong></div>' . '<div class="col-md-2 procurement_pde">' . $row['pdename'] . '</div>' . '<div class="col-md-2">' . $row['procurement_ref_no'] . '</div>' . '<div class="col-md-2 procurement_subject">' . $row['subject_of_procurement'] . '</div>' . '<div class="col-md-2 procurement_pde">' . $providername . '</div>' . '<div class="col-md-1">
                             <a data-toggle="modal" class="btn  btn-xs btn-primary" role="button" href="' . base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/details/' . encryptValue($row['id']) . '" id="modal-703202">
                             Contract details</a></div>' . '</div>' . '<hr>';
    }
} else {
    print format_notice("ERROR: No contracts have been signed");
}
?>
    </div>
</div>
Example #29
0
        <table border="0" cellspacing="0" cellpadding="10" width="100%" id='contenttable'>
          <tr>
            <td colspan="2" style="padding-top:0px;" class="pageheader">
            	<table>
          		<tr>
            		<td valign="middle"><div class="page-title">Staff Details</div></td>
            		<td valign="middle">&nbsp;</td>
                    <td valign="middle">&nbsp;</td>
            	</tr>
          </table>
			</td>
          </tr>
            
 <?php 
if (isset($msg)) {
    echo "<tr><td colspan='4'>" . format_notice($msg) . "</td></tr>";
}
?>
           
            
          <tr>
            <td valign="top">
            <form id="form1" name="form1">
            
            <table width="100" border="0" cellspacing="0" cellpadding="8">
				  <tr>
                    <td valign="top" nowrap="nowrap" class="label" style="padding-top:13px">First Name :<?php 
echo $indicator;
?>
</td>
                    <td class="field" nowrap>
Example #30
0
<table>
<?php 
$stopHtml = "<input name='paginationdiv__procurement_plan_stop' id='paginationdiv__procurement_plan_stop' type='hidden' value='1' />";
if (!empty($list)) {
    echo "<tr><th>Procuring/Disposing Entity</th><th>&nbsp;</th></tr>";
    $listCount = count($list);
    $i = 0;
    foreach ($list as $row) {
        $i++;
        echo "<tr>\n\t\t\t\t<td>" . $row['pde'] . "</td>\n\t\t\t\t<td><a href='" . base_url() . 'procurement_plans/view_one/d/' . $row['procurement_plan_id'] . "' class='shadowbox blue-box closable'>Details for " . $row['name'] . " FY " . substr($row['financial_year_start'], 0, 4) . '-' . substr($row['financial_year_end'], 0, 4);
        if ($i == $listCount && (!empty($n) && $listCount < $n || empty($n) && $listCount < NUM_OF_ROWS_PER_PAGE)) {
            echo $stopHtml;
        }
        echo "</td>\n\t\t\t\t</tr>";
    }
} else {
    echo "<tr><td>" . format_notice($this, 'WARNING: There are no procurement plans in this list.') . $stopHtml . "</td></tr>";
}
?>
</table>