Exemple #1
0
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license 
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**> 
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL) 
 */
?>

<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs("upload");
?>
	</h2>
	<!-- report-form -->
	<div class="report-form">
		<?php 
if ($form_error) {
    ?>
			<!-- red-box -->
			<div class="red-box">
				<h3><?php 
    echo Kohana::lang('ui_main.error');
    ?>
</h3>
				<ul>
                <?php 
Exemple #2
0
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**>
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 */
?>
			<div class="bg">
				<h2>
					<?php 
admin::reports_subtabs("view");
?>
				</h2>
				<!-- tabs -->
				<div class="tabs">
					<!-- tabset -->
					<ul class="tabset">
						<li><a href="?status=0" <?php 
if ($status != 'a' && $status != 'v') {
    echo "class=\"active\"";
}
?>
><?php 
echo Kohana::lang('ui_main.show_all');
?>
</a></li>
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license 
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**> 
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL) 
 */
?>
			<div class="bg">
				<h2>
					<?php 
admin::reports_subtabs("edit");
?>
				</h2>
				<?php 
print form::open(NULL, array('enctype' => 'multipart/form-data', 'id' => 'reportForm', 'name' => 'reportForm'));
?>
					<input type="hidden" name="save" id="save" value="">
					<input type="hidden" name="location_id" id="location_id" value="<?php 
print $form['location_id'];
?>
">
					<!-- report-form -->
					<div class="report-form">
						<?php 
if ($form_error) {
    ?>
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license 
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**> 
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL) 
 */
?>
			<div class="bg">
				<h2>
					<?php 
admin::reports_subtabs("comments");
?>
				</h2>
				<!-- tabs -->
				<div class="tabs">
					<!-- tabset -->
					<ul class="tabset">
						<li><a href="?status=0" <?php 
if ($status != 'a' && $status != 'p' && $status != 's') {
    echo "class=\"active\"";
}
?>
><?php 
echo Kohana::lang('ui_main.show_all');
?>
</a></li>
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license 
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**> 
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL) 
 */
?>
<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs("download");
?>
	</h2>
	<!-- report-form -->
	<div class="report-form">
		<?php 
if ($form_error) {
    ?>
			<!-- red-box -->
			<div class="red-box">
				<h3><?php 
    echo Kohana::lang('ui_main.error');
    ?>
</h3>
				<ul>
				<?php 
Exemple #6
0
<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs("gpxer");
?>
	</h2>
	
	<?php 
print form::open(NULL, array('enctype' => 'multipart/form-data', 'id' => 'gpxer', 'name' => 'gpxer'));
?>
	<input type="hidden" name="gpx2" value="222">
	<div class="report-form">	
		<div class="head">
			<h3>Upload GPX Files</h3>
		</div>
		<!-- column -->
		
		<?php 
if ($form_error) {
    ?>
			<!-- red-box -->
			<div class="red-box">
				<h3><?php 
    echo Kohana::lang('ui_main.error');
    ?>
</h3>
				<ul>
				<?php 
    foreach ($errors as $error_item => $error_description) {
        print !$error_description ? '' : "<li>" . $error_description . "</li>";
    }
Exemple #7
0
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Ushahidi Team <*****@*****.**>
 * @package    Ushahidi - http://source.ushahididev.com
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 */
?>
<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs("delete-all");
?>
	</h2>

	<!-- report-form -->
	<div class="report-form">
		<!-- column -->
		<div class="deleteall_container">
			<h1><?php 
echo Kohana::lang('ui_admin.delete_all');
?>
</h1>

			<?php 
if ($report_count > 0) {
    ?>
Exemple #8
0
<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs("analysis");
?>
	</h2>
	
	<div class="report-form">		
		<div class="head">
			<h3>Analysis</h3>
		</div>
		<!-- column -->
		
		<!-- column -->		
		<div class="settings_holder">
		
			<?php 
print form::open(url::base() . 'admin/reports/edit', array('id' => 'analysis-form', 'method' => 'get'));
?>
			<div class="analysis-report">
				<form>
					<div class="analysis-about">
						<h4>How Analysis Works</h4>
						<ul>
							<li>This tool helps you find related reports in the system based on specified parameters.</li>
							<li>To the right, select the filters you'd like to apply to the reports you're looking for.</li>
							<li>Select the reports you'd like to analyse and click 'Perform Assessment'</li>
						</ul>
						<a href="javascript:hideAbout();">Hide</a>
					</div>
					
<?php

/**
 * IVR API data export view
 *
 * @author     John Etherton <*****@*****.**>
 */
?>

<div class="bg">
	<h2>
		<?php 
admin::reports_subtabs();
?>
	</h2>
	<!-- report-form -->
	<div class="report-form">
		<?php 
if ($form_error) {
    ?>
			<!-- red-box -->
			<div class="red-box">
				<h3><?php 
    echo Kohana::lang('ui_main.error');
    ?>
</h3>
				<ul>
                <?php 
    foreach ($errors as $error_item => $error_description) {
        print !$error_description ? '' : "<li>" . $error_description . "</li>";
    }
 * Reports revision view page.
 *
 * PHP version 5
 * LICENSE: This source file is subject to LGPL license 
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 * @author     Robbie Mackay
 * @package    Revision
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL) 
 */
?>
			<div class="bg">
				<h2>
					<?php 
admin::reports_subtabs("");
?>
				</h2>
				
				<ul>
				<?php 
foreach ($revisions as $revision) {
    //echo "<li>$revision</li>";
    echo "<li>";
    echo isset($revision->user_id) ? Kohana::lang('ui_admin.edited_by') . " " . $revision->user->name . ". " : '';
    if ($revision->changed_data()) {
        Kohana::lang('revision.changed_fields') . ": <br />";
        echo "<ul>";
        foreach ($revision->changed_data() as $field => $value) {
            if (!is_array($value)) {
                echo "<li>{$field} to {$value}</li>";