}
    ?>



                        </tbody>
                    </table>


                    </p>

                    <p>

                        <a class="btn" href="#" onClick="$('.display').tableExport({type:'excel',escape:'false'});">  EXPORT </a>
                    </p>
                <?php 
} else {
    echo info_template("No data to display");
}
?>

            </div>
            <div class="tab-pane" id="blue">
                <h1>Blue</h1>
                <p>blue blue blue blue blue</p>
            </div>
        </div>
    </div>


</div> <!-- container -->
Example #2
0
                        <td style="text-align: right;"><?php 
                echo get_procurement_plan_entry_info($row['procurement_ref_id'], 'estimated_amount');
                ?>
</td>
                        <td class="hidden-480"><?php 
                echo date('d-F-Y', strtotime($row['commencement_date']) + $row['days_duration'] * 24 * 60 * 60);
                ?>
</td>
                        <td class="hidden-480"><?php 
                echo custom_date_format('d-M-Y', $row['completion_date']);
                ?>
</td>
                        <td class="hidden-480"><?php 
                echo (strtotime(date('d-M-Y', strtotime($row['commencement_date']) + $row['days_duration'] * 24 * 60 * 60)) - strtotime(custom_date_format('d-M-Y', $row['completion_date']))) / 86400 < 0 ? substr((strtotime(date('d-M-Y', strtotime($row['commencement_date']) + $row['days_duration'] * 24 * 60 * 60)) - strtotime(custom_date_format('d-M-Y', $row['completion_date']))) / 86400, 1) . '<span class="label label-important pull-right"> late</span>' : (strtotime(date('d-F-Y', strtotime($row['commencement_date']) + $row['days_duration'] * 24 * 60 * 60)) - strtotime(custom_date_format('d-F-Y', $row['completion_date']))) / 86400 . ' <span class="label label-success pull-right"> early</span>';
                ?>
</td>
                    </tr>
                <?php 
            }
        }
        ?>

            </tbody>
        </table>


    <?php 
    }
} else {
    echo info_template('No results to display');
}
    }
    ?>
        <tr>
            <td></td>
            <td></td>
            <td style="text-align: right; border-top: solid 1px"><?php 
    echo array_sum($totals);
    ?>
</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>

        </tr>


        </tbody>
    </table>

    <?php 
    if (!count($values)) {
        echo info_template('No value for this month');
    }
    ?>


<?php 
} else {
    echo info_template('Select Financial year ');
}
Example #4
0

                    <div class="table-responsive">



                        <div class="message">
                            <p>
                                <?php 
echo isset($quarter) ? $quarter : '';
?>
                            </p>


                            <?php 
echo isset($report_view) ? $this->load->view($report_view) : info_template('No view to display');
?>



                        </div>
                    </div>

                </div>
            </div>

        </div><!--/span-->
    </div><!--/row-->

    <hr>
Example #5
0
//print_array(get_pde_info_by_id($this->session->userdata('pdeid'),'title'))
//print_array($results);
if (isset($errors)) {
    echo error_template($errors);
}
if (isset($results)) {
    //print_array($_POST);
    //switch by report type
    switch ($this->input->post('report_type')) {
        //case ot timelines of contract completion
        case "timeliness_of_contract_completion":
            //load the timeliness_of_contract_completion report view
            $this->load->view('reports/ppms/timeliness_of_contract_completion_v');
            break;
            //procurement_lead_time_report
        //procurement_lead_time_report
        case "procurement_lead_time_report":
            $this->load->view('reports/ppms/procurement_lead_time_report_v');
            break;
            //contracts_completed_within_original_value
        //contracts_completed_within_original_value
        case "contracts_completed_within_original_value":
            $this->load->view('reports/ppms/contracts_completed_within_original_value_v');
            break;
        case "average_number_of_bids_per_contract":
            $this->load->view('reports/ppms/average_number_of_bids_per_contract_v');
            break;
        default:
            echo info_template('Select report type from the form on the left');
    }
}
<?php

//print_array($results);
if (isset($notes)) {
    echo info_template($notes);
}
$total_contract_value = array();
$total_estimated_value = array();
$available_procurement_methods = array();
$total_pdes = array();
$completed_contracts = array();
$only_awarded_contracts = array();
foreach ($results as $row) {
    $total_contract_value[] = $row['total_actual_payments'];
    $total_estimated_value[] = $row['final_contract_value'];
    //get available procurement methods
    if (!in_array($row['procurement_method'], $available_procurement_methods)) {
        $available_procurement_methods[] = $row['procurement_method'];
    }
    //get pdes
    if (!in_array($row['pdeid'], $total_pdes)) {
        $total_pdes[] = $row['pdeid'];
    }
    //grab completed contracts
    if ($row['actual_completion_date'] != '') {
        $completed_contracts[] = $row;
    } else {
        $only_awarded_contracts[] = $row;
    }
}
$only_awarded_contracts_total_contract_value = array();
Example #7
0
                        <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/send_message/' . encryptValue($message['sender_id']) . '/reply/' . encryptValue($message['sender_id']) ?>"><?= get_user_info_by_id($message['sender_id'], 'fullname') ?></a>
                        <span class="date"> <?= time_ago($message['dateadded']) ?></span>
                    </div>
                    <?= $message['content'] ?>
                </div>
            </div>


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

} else {
    echo info_template('You have no new messages');

    ?>
    <div class="col-md-12">

        <div class="panel panel-default">
            <div class="panel-body">
                <p>Use search to find a user </p>
                <?= $this->load->view('admin/messages/forms/search_users_f') ?>

            </div>
                </div>

        <div class="row">
            <div class="message">
Example #8
0
    </div>












<?php
} else {
    echo info_template('No data to display <a class="btn btn-primary btn-xs" href="' . base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/add">Add a new category</a>');
}
?>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
            </div>
            <div class="modal-body">
                ...
            </div>
Example #9
0
                <div class="panel panel-default">
                    <div class="panel-body profile">
                        <div class="profile-image">
                            <img src="<?= base_url() ?>uploads/avatars/<?= $user['avatar'] ?>" alt="Nadia Ali">
                        </div>
                        <div class="profile-data">
                            <div class="profile-data-name"><?= $user['fname'] . ' ' . $user['lname'] ?></div>
                        </div>

                    </div>
                    <div class="panel-body">
                        <div class="contact-info">
                            <p><a class="btn btn-sm btn-danger"
                                  href="<?= base_url() . $this->uri->segment(1) . '/message_board/send_message/' . encryptValue($user['id']) ?>">Send
                                    message</a></p>

                        </div>
                    </div>
                </div>
                <!-- END CONTACT ITEM -->
            </div>
        <?php
        }
        ?>

    </div>
<?php

} else {
    echo info_template('No matches found');
}
Example #10
0
<?php
/*
#Author: Cengkuru Micheal
9/2/14
10:49 AM
*/
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<?php
if (!$policies) {
    echo info_template('No privacy policy created yet <a class="btn btn-xs btn-primary" href="' . base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/add_policy">Create</a>');
} else {
    foreach ($policies as $policy) {
        ?>
        <p>
            <div class="dropdown">
              <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                Actions
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">

                <li role="presentation"><a role="menuitem" tabindex="-1" href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/edit_policy' ?>">Edit privacy policy</a></li>
              </ul>
            </div>
        </p>
<?php
        echo html_entity_decode($policy['content']);
    }
}
Example #11
0
                                   ?>
                               </td>

                               <td><?= get_file_type_info_by_id($row['file_type'], 'title') ?></td>

                           </tr>
                       <?php
                       }



                   }

                   //if files available but categories are trashed
                   if (count($active_parent_categories) == 0) {
                       echo info_template('Some files can nit be displayed since their categories are trashed');
                   }
                   ?>

                   </tbody>
               </table>
           </div><!--end .card-body -->
       </div>



<!-- Modal -->
        <div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
<?php

//if there are errors
if (isset($errors)) {
    echo error_template($errors);
} else {
    echo info_template('Use form on the left to select the report you want to generate');
    //print_array($all_post_params);
}
Example #13
0
 function logo_settings()
 {
     if (check_my_access('view_site_info')) {
         if ($this->input->post('ajax')) {
             $str = '';
             switch ($this->input->post('ajax')) {
                 case 'logo_dimensions':
                     //print_array($_POST);
                     $this->form_validation->set_rules($this->site_logo_m->validate_dimensions);
                     $str = '';
                     if ($this->form_validation->run() == FALSE) {
                         $str .= error_template(validation_errors());
                     } else {
                         $info = array('width' => $this->input->post('logo_width'), 'height' => $this->input->post('logo_height'));
                         //check if thetre is info
                         $logo_info = $this->site_logo_m->get_all();
                         if (count($logo_info)) {
                             //then update based on id
                             foreach ($logo_info as $row) {
                                 if ($this->site_logo_m->update($row['id'], $info, 'You updated site logo info')) {
                                     $str .= success_template('Site logo dimensions have been successfully Updated');
                                 } else {
                                     $str .= info_template('No change was made');
                                 }
                             }
                         } else {
                             //insert
                             if ($this->site_logo_m->create($info, 'You updated the site logo info')) {
                                 $str .= success_template('Site logo dimensions have been successfully added');
                             }
                         }
                     }
                     echo $str;
                     break;
             }
             echo $str;
         } else {
             $data['main_content'] = 'admin/settings/logo_home_v';
             $data['pagetitle'] = 'Logo Settings';
             $data['logo_info'] = $this->site_logo_m->get_all();
             if ($this->input->post('upload')) {
                 //if a file is being uploaded
                 if ($_FILES and $_FILES['userfile']['name']) {
                     //check if there is already a logo
                     if ($this->site_logo_m->get_all()) {
                         //delete it
                         foreach ($this->site_logo_m->get_all() as $row) {
                             unlink('uploads/site_logo/' . get_thumbnail($row['logo_name']));
                             unlink('uploads/site_logo/' . $row['logo_name']);
                         }
                     }
                     $image_name = $this->site_logo_m->do_upload('site_logo');
                     // Upload the file
                     if (!$this->upload->display_errors()) {
                         //save file name
                         $image_data = array('logo_name' => $image_name);
                         //print_array($_POST);
                         //check if there is already a logo
                         if ($data['logo_info']) {
                             //do update
                             foreach ($this->site_logo_m->get_all() as $row) {
                                 //save file info
                                 if ($this->site_logo_m->update($row['id'], $image_data, 'updated site logo ')) {
                                     $data['success'] = 'Site logo successfully updated <a class="btn btn-success btn-sx" href="' . current_url() . '">Refresh</a>';
                                 } else {
                                     $data['errors'] = 'File was not saved. Please try again';
                                 }
                             }
                         } else {
                             //save file info
                             if ($this->site_logo_m->create($image_data, 'updated site logo ')) {
                                 $data['success'] = 'Site logo successfully updated  <a class="btn btn-success btn-xs" href="' . current_url() . '">Refresh</a>';
                             } else {
                                 $data['errors'] = 'File was not saved. Please try again';
                             }
                         }
                     } else {
                         $data['errors'] = $this->upload->display_errors();
                     }
                 } else {
                     $data['errors'] = 'Upload an image';
                 }
             }
             //load the admin dashboard view
             $this->load->view('admin/includes/admin_template', $data);
         }
     } else {
         load_access_denied_page();
     }
 }
Example #14
0
                                    <td><?php 
        echo $entry['estimated_amount'] . ' ' . get_currency_info_by_id($entry['currency'], 'abbrv');
        ?>
</td>
                                </tr>
                            <?php 
    }
    ?>


                            </tbody>
                        </table>

                    <?php 
} else {
    echo info_template('Plan has no entries yet');
    echo check_my_access('add_procurement_entry') == TRUE ? '<a class="btn btn-xs btn-primary" href="' . base_url() . $this->uri->segment(1) . '/new_entry/m/' . $this->uri->segment(3) . '">Add entry</a>' : '';
}
?>

                </div>

				</div>
			</div>
	  </div>
   </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $('[data-toggle="popover"]').popover({
            html: true,
Example #15
0
                $id=encryptValue($row['id']);
                $subject=$row['subject'];
                $sender=$row['sender_name'];
                $send_date=custom_date_format('d / F / Y',$row['dateadded']);
                $content=html_entity_decode($row['content']);
            }

            ?>
            <h1 class="no-margin"><?=ucwords($subject)?></h1>
            <div class="btn-group stick-top-right">
                <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/reply/' . $id ?>" class="btn btn-icon-toggle btn-default"><i class="md md-reply"></i></a>
            </div>
            <span class="pull-right text-default-light"><?=$send_date?></span>
            <strong><?=$sender?></strong>
            <hr/>
            <?=$content?>
        <?php

        }else{
            echo info_template('Inbox Empty');
        }

        ?>



    </div><!--end .card-body -->
</div>


</td>
                <td><?php 
        echo $row['total_actual_payments'];
        ?>
</td>
            </tr>
            <?php 
    }
    ?>

        </tbody>
    </table>
<?php 
}
if (isset($results)) {
    echo info_template('Use form on the left to filter results');
} else {
    ?>
    <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>' . '<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 id=""  class="display table table-striped table-hover">' . '<thead>' . '<tr>' . ($formdata['contracts_report_type'] == 'AC' ? '<th class="hidden-480">Date signed</th>' : '') . (in_array($formdata['contracts_report_type'], array('CDC', 'LC')) ? '<th class="hidden-480">Planned date of completion</th>' : '') . '<th align="left">PDE name</th>' . '<th class="hidden-480">Procurement ref. no.</th>' . '<th class="hidden-480">Subject of procurement</th>' . '<th class="hidden-480">Service provider</th>' . (in_array($formdata['contracts_report_type'], array('LC')) ? '<th class="hidden-480">Days delayed</th>' : '') . (in_array($formdata['contracts_report_type'], array('CC')) ? '<th class="hidden-480">Date of completion</th>' : '') . (in_array($formdata['contracts_report_type'], array('CC')) ? '<th style="text-align:right">Total amount paid (UGX)</th>' : '') . '<th style="text-align:right">Contract value (UGX)</th>' . '</tr>' . '</thead>' . '</tbody>';
        $grand_contracts_value = 0;
        $grand_total_amount_paid = 0;
        foreach ($page_list as $row) {
            if (!empty($row['actual_completion_date']) && str_replace('-', '', $row['actual_completion_date']) > 0) {
                $status_str = 'COMPLETE';
            } else {
                $status_str = 'IN PROGRESS';
            }