public function __construct() { // Load cache $this->cache = new Cache(); // Load Session $this->session = Session::instance(); // Grab the proper URL for the css and js files $this->css_url = url::file_loc('css'); $this->js_url = url::file_loc('js'); }
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo Kohana::lang('ui_main.login'); ?> </title> <?php echo html::stylesheet(url::file_loc('css') . 'media/css/jquery-ui-themeroller', '', TRUE); echo html::stylesheet(url::file_loc('css') . 'media/css/login', '', TRUE); echo html::stylesheet(url::file_loc('css') . 'media/css/openid', '', TRUE); echo html::stylesheet(url::file_loc('css') . 'media/css/global', '', TRUE); echo html::stylesheet(url::file_loc('css') . 'themes/peace/css/_global.css', '', TRUE); echo html::script(url::file_loc('js') . 'media/js/jquery', TRUE); echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery', TRUE); echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery-en', TRUE); echo html::script(url::file_loc('js') . 'media/js/global', TRUE); ?> <script type="text/javascript"> <?php echo $js; ?> </script> </head> <body> <?php echo $header_nav; ?> <div id="openid_login_container">
} // Load TinyMCE if ($editor_enabled) { echo html::script(url::file_loc('js') . 'media/js/tinymce/tiny_mce', true); } // Table Row Sort if ($tablerowsort_enabled) { echo html::script(url::file_loc('js') . 'media/js/jquery.tablednd_0_5', true); } // JSON2 for IE+ if ($json2_enabled) { echo html::script(url::file_loc('js') . 'media/js/json2', true); } // Turn on picbox echo html::script(url::file_loc('js') . 'media/js/picbox', true); echo html::stylesheet(url::file_loc('css') . 'media/css/picbox/picbox'); // Render CSS and Javascript Files from Plugins echo plugin::render('stylesheet'); echo plugin::render('javascript'); // Action::header_scripts_admin - Additional Inline Scripts Event::run('ushahidi_action.header_scripts_admin'); ?> <script type="text/javascript" charset="utf-8"> <?php echo $js . "\n"; ?> function info_search(){ $("#info-search").submit(); } function show_addedit(toggle){ if (toggle) {
$("#category-column-1,#category-column-2").treeview({ persist: "location", collapsed: true, unique: false }); }); }); /** * Google GeoCoder */ function geoCode() { $('#find_loading').html('<img src="<?php echo url::file_loc('img') . "media/img/loading_g.gif"; ?> ">'); address = $("#location_find").val(); $.post("<?php echo url::site() . 'reports/geocode/'; ?> ", { address: address }, function(data){ if (data.status == 'success'){ var lonlat = new OpenLayers.LonLat(data.message[1], data.message[0]); lonlat.transform(proj_4326,proj_900913); m = new OpenLayers.Marker(lonlat); markers.clearMarkers(); markers.addMarker(m);
} else { echo '<script type="text/javascript">' . $field_property['field_default'] . '</script>'; } } } else { echo "<div class=\"report_row\" id=\"custom_field_row_" . $field_id . "\">"; echo "<h4>" . $field_property['field_name'] . $isrequired . " " . $isprivate . "</h4>"; echo form::textarea('custom_field[' . $field_id . ']', $field_value, $id_name . ' class="textarea custom_text" rows="3"'); echo "</div>"; } } elseif ($field_property['field_type'] == 3) { // Date Field echo "<div class=\"report_row\" id=\"custom_field_row_" . $field_id . "\">"; echo "<h4>" . $field_property['field_name'] . $isrequired . " " . $isprivate . "</h4>"; echo form::input('custom_field[' . $field_id . ']', $field_value, ' id="custom_field_' . $field_id . '" class="text"'); echo "<script type=\"text/javascript\">\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\$(\"#custom_field_" . $field_id . "\").datepicker({\n\t\t\t\tshowOn: \"both\",\n\t\t\t\tbuttonImage: \"" . url::file_loc('img') . "media/img/icon-calendar.gif\",\n\t\t\t\tbuttonImageOnly: true\n\t\t\t\t});\n\t\t\t\t});\n\t\t\t</script>"; echo "</div>"; } elseif ($field_property['field_type'] >= 5 and $field_property['field_type'] <= 7) { // Multiple-selector Fields echo "<div class=\"report_row\" id=\"custom_field_row_" . $field_id . "\">"; echo "<h4>" . $field_property['field_name'] . $isrequired . " " . $isprivate . "</h4>"; $defaults = explode('::', $field_property['field_default']); $default = isset($defaults[1]) ? $defaults[1] : 0; if (isset($form['custom_field'][$field_id])) { if ($form['custom_field'][$field_id] != '') { $default = $form['custom_field'][$field_id]; } } $options = explode(',', $defaults[0]); $html = ''; switch ($field_property['field_type']) {
/** * CSS/JS requirements */ public function requirements() { Requirements::customHeadTags(Kohana::config("globalcode.head"), 'globalcode-head'); Requirements::js("media/js/jquery.js"); Requirements::js("media/js/jquery.ui.min.js"); //Requirements::js(Kohana::config('core.site_protocol')."://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"); Requirements::js("media/js/jquery.pngFix.pack.js"); Requirements::js("media/js/jquery.timeago.js"); Requirements::css("media/css/jquery-ui-themeroller.css"); Requirements::js('media/js/global.js'); Requirements::css('media/css/global.css'); if ($this->map_enabled) { Requirements::js("media/js/OpenLayers.js"); Requirements::js("media/js/ushahidi.js"); if ($this->api_url) { Requirements::js($this->api_url); } Requirements::customJS("OpenLayers.ImgPath = '" . url::file_loc('js') . "media/img/openlayers/" . "';", 'openlayers-imgpath'); Requirements::css("media/css/openlayers.css"); } if ($this->hovertip_enabled) { Requirements::js('media/js/jquery.hovertip-1.0.js'); Requirements::css('media/css/jquery.hovertip-1.0.css', ''); Requirements::customJS("\$(function() {\n\t\t\t\t\t\tif(\$('.tooltip[title]') != null)\n\t\t\t\t\t\t\$('.tooltip[title]').hovertip();\n\t\t\t\t\t});", 'tooltip-js'); } if ($this->slider_enabled) { Requirements::js('media/js/selectToUISlider.jQuery.js'); } if ($this->timeline_enabled) { Requirements::js("media/js/jquery.jqplot.min.js"); Requirements::css("media/css/jquery.jqplot.min.css"); Requirements::js("media/js/jqplot.dateAxisRenderer.min.js"); Requirements::js("media/js/jqplot.barRenderer.min.js"); // HT: added for bar graph Requirements::js("media/js/jqplot.pointLabels.min.js"); // HT: added for showing point label } if ($this->treeview_enabled) { Requirements::css("media/css/jquery.treeview.css"); Requirements::js("media/js/jquery.treeview.js"); } // Load ProtoChart if ($this->protochart_enabled) { Requirements::customJS("jQuery.noConflict()", 'jquery-noconflict'); Requirements::js('media/js/protochart/prototype.js'); Requirements::customHeadTags('<!--[if IE]>' . html::script(url::file_loc('js') . 'media/js/protochart/excanvas-compressed', TRUE) . '<![endif]-->', 'ie-excanvas-compressed'); Requirements::js('media/js/protochart/ProtoChart.js'); } // Load Raphael if ($this->raphael_enabled) { // The only reason we include prototype is to keep the div element naming convention consistent //Requirements::js('media/js/protochart/prototype.js'); Requirements::js('media/js/raphael.js'); Requirements::customJS('var impact_json = ' . $this->impact_json . ';', 'impact_json'); Requirements::js('media/js/raphael-ushahidi-impact.js'); } if ($this->validator_enabled) { Requirements::js("media/js/jquery.validate.min.js"); } if ($this->photoslider_enabled) { Requirements::css("media/css/picbox/picbox.css"); Requirements::js("media/js/picbox.js"); } if ($this->colorpicker_enabled) { Requirements::css("media/css/colorpicker.css"); Requirements::js("media/js/colorpicker.js"); } // Load jwysiwyg if ($this->editor_enabled) { Requirements::css('media/js/jwysiwyg/jquery.wysiwyg.css'); Requirements::css('media/js/jwysiwyg/plugins/fileManager/wysiwyg.fileManager.css'); if (Kohana::config("cdn.cdn_ignore_jwysiwyg") == TRUE) { Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/jquery.wysiwyg.js'); // not sure what the hell to do about this Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/controls/wysiwyg.link.js'); Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/controls/wysiwyg.image.js'); Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/controls/wysiwyg.table.js'); Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/plugins/wysiwyg.fullscreen.js'); Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/plugins/wysiwyg.rmFormat.js'); Requirements::js(url::file_loc('ignore') . 'media/js/jwysiwyg/plugins/wysiwyg.fileManager.js'); } else { Requirements::js('media/js/jwysiwyg/jquery.wysiwyg.js'); Requirements::js('media/js/jwysiwyg/controls/wysiwyg.link.js'); Requirements::js('media/js/jwysiwyg/controls/wysiwyg.image.js'); Requirements::js('media/js/jwysiwyg/controls/wysiwyg.table.js'); Requirements::js('media/js/jwysiwyg/plugins/wysiwyg.fullscreen.js'); Requirements::js('media/js/jwysiwyg/plugins/wysiwyg.rmFormat.js'); Requirements::js('media/js/jwysiwyg/plugins/wysiwyg.fileManager.js'); } } // Table Row Sort if ($this->tablerowsort_enabled) { Requirements::js('media/js/jquery.tablednd_0_5.js'); } // JSON2 for IE+ if ($this->json2_enabled) { Requirements::js('media/js/json2.js'); } if ($this->datepicker_enabled) { Requirements::customJS("\n\t\t\t\tDate.dayNames = [\n\t\t\t\t '" . Kohana::lang('datetime.sunday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.monday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.tuesday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.wednesday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.thursday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.friday.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.saturday.full') . "'\n\t\t\t\t];\n\t\t\t\tDate.abbrDayNames = [\n\t\t\t\t '" . Kohana::lang('datetime.sunday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.monday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.tuesday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.wednesday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.thursday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.friday.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.saturday.abbv') . "'\n\t\t\t\t];\n\t\t\t\tDate.monthNames = [\n\t\t\t\t '" . Kohana::lang('datetime.january.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.february.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.march.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.april.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.may.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.june.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.july.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.august.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.september.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.october.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.november.full') . "',\n\t\t\t\t '" . Kohana::lang('datetime.december.full') . "'\n\t\t\t\t];\n\t\t\t\tDate.abbrMonthNames = [\n\t\t\t\t '" . Kohana::lang('datetime.january.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.february.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.march.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.april.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.may.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.june.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.july.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.august.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.september.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.october.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.november.abbv') . "',\n\t\t\t\t '" . Kohana::lang('datetime.december.abbv') . "'\n\t\t\t\t];\n\t\t\t\tDate.firstDayOfWeek = 1;\n\t\t\t\tDate.format = 'mm/dd/yyyy';\n\t\t\t", 'locale-dates'); Requirements::js('media/js/jquery.datePicker.js'); Requirements::customHeadTags('<!--[if IE]>' . html::script(url::file_loc('js') . 'media/js/jquery.bgiframe.min', TRUE) . '<![endif]-->', 'jquery.bgiframe.min'); } // JS base combines $base_js = array('media/js/jquery.js', 'media/js/jquery.ui.min.js', 'media/js/jquery.pngFix.pack.js', 'media/js/jquery.timeago.js', 'media/js/global.js', 'media/js/jquery.treeview.js', 'media/js/selectToUISlider.jQuery.js', 'media/js/jquery.validate.min.js', 'media/js/colorpicker.js'); if ($this->timeline_enabled) { $base_js[] = 'media/js/jquery.jqplot.min.js'; $base_js[] = 'media/js/jqplot.dateAxisRenderer.min.js'; $base_js[] = 'media/js/jqplot.barRenderer.min.js'; // HT: added for bar graph $base_js[] = 'media/js/jqplot.pointLabels.min.js'; // HT: added for showing point label } Requirements::combine_files('0_base.js', $base_js); // CSS base combines $base_css = array('media/css/jquery-ui-themeroller.css', 'media/css/global.css', 'media/css/openlayers.css', 'media/css/jquery.treeview.css', 'media/css/colorpicker.css'); if ($this->timeline_enabled) { $base_css[] = 'media/css/jquery.jqplot.min.css'; } Requirements::combine_files('0_base.css', $base_css); Event::run('ushahidi_action.themes_add_requirements_pre_theme', $this); if ($this->admin) { $this->admin_requirements(); // JP: Add _global.css file, if found. foreach (self::$theme_css as $css) { if (!strcmp(end(explode("/", $css)), "_global.css")) { Requirements::css($css); } } } if ($this->frontend) { $this->frontend_requirements(); } // Inline Javascript if (!empty($this->js)) { //@todo add deprecated warning Requirements::customJS($this->js, 'pagejs'); } Event::run('ushahidi_action.themes_add_requirements', $this); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo Kohana::lang('ui_main.login'); ?> </title> <?php echo html::stylesheet(url::file_loc('css') . 'media/css/jquery-ui-themeroller', '', true); echo html::stylesheet(url::file_loc('css') . 'media/css/login', '', true); echo html::stylesheet(url::file_loc('css') . 'media/css/openid', '', true); echo html::script(url::file_loc('js') . 'media/js/jquery', true); echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery', true); echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery-en', true); ?> <script type="text/javascript"> <?php echo $js; ?> </script> </head> <body> <div id="openid_login_container"> <div id="ushahidi_site_name" class="ui-corner-all"> <div id="logo"> <h1><?php echo $site_name; ?>
<div class="box"> <table> <tr> <td width="5"><?php print form::radio('formato', 0, 1); ?> </td><td width="50">CSV</td> <td width="5"><?php print form::radio('formato', 1, 0); ?> </td><td width="50">KML</td> <!-- JP: Added HTML option. --> <td width="5"><?php print form::radio('formato', 2, 0); ?> </td><td width="50">HTML</td> <td width="50"> <input id="save_only" type="image" src="<?php print url::file_loc('img'); ?> media/img/admin/btn-download.gif" class="save-rep-btn" /> </td> </tr> </table> </div> <div id="form_error"></div> <?php print form::close(); ?> </div>
$field_required = $field->field_required; $field_width = $field->field_width; $field_height = $field->field_height; $field_maxlength = $field->field_maxlength; $field_position = $field->field_position; $field_type = $field->field_type; $field_isdate = $field->field_isdate; $form_fields .= "<div class=\"forms_fields_item\">"; $form_fields .= "\t<strong>" . $field_name . ":</strong><br />"; if ($field_type == 1) { $form_fields .= form::input("custom_" . $field_id, '', ''); } elseif ($field_type == 2) { $form_fields .= form::textarea("custom_" . $field_id, ''); } if ($field_isdate == 1) { $form_fields .= " <a href=\"#\"><img src = \"" . url::file_loc('img') . "media/img/icon-calendar.gif\" align=\"middle\" border=\"0\"></a>"; } $form_fields .= "\t<div class=\"forms_fields_edit\">\n\t\t\t\t\t\t\t\t\t<a href=\"javascript:fieldAction('e','EDIT'," . $field_id . "," . $form_id . "," . $field_type . ");\">EDIT</a> | \n\t\t\t\t\t\t\t\t\t<a href=\"javascript:fieldAction('d','DELETE'," . $field_id . "," . $form_id . "," . $field_type . ");\">DELETE</a> | \n\t\t\t\t\t\t\t\t\t<a href=\"javascript:fieldAction('mu','MOVE'," . $field_id . "," . $form_id . "," . $field_type . ");\">MOVE UP</a> | \n\t\t\t\t\t\t\t\t\t<a href=\"javascript:fieldAction('md','MOVE'," . $field_id . "," . $form_id . "," . $field_type . ");\">MOVE DOWN</a></div>"; $form_fields .= "</div>"; } $form_fields .= "</form>"; ?> <?php print form::open(NULL, array('id' => 'form_action_' . $form_id, 'name' => 'form_action_' . $form_id)); ?> <input type="hidden" name="action" id="action_<?php echo $form_id; ?> " value=""> <input type="hidden" name="form_id" value="<?php echo $form_id;
<div class="head"> <h3><?php echo Kohana::lang('ui_main.theme_settings'); ?> </h3> <input type="submit" class="save-rep-btn" value="<?php echo Kohana::lang('ui_admin.save_settings'); ?> " /> </div> <!-- column --> <div class="sms_holder"> <!-- Default Theme --> <div class="theme_holder"> <div class="theme_screenshot"><?php echo "<img src=\"" . url::file_loc('img') . "media/img/default_theme.png\" width=240 height=150 border=0>"; ?> </div> <strong><?php echo Kohana::lang('ui_main.theme_default'); ?> </strong><BR /> <?php echo Kohana::lang('ui_main.theme_default'); ?> .<BR /> <strong><u><?php echo Kohana::lang('ui_main.version'); ?> </u></strong>: 1.0<BR /> <strong><u><?php
", graphicOpacity: 1, graphicWidth: 21, graphicHeight: 25, graphicXOffset: -14, graphicYOffset: -27 }); style2 = new OpenLayers.Style({ pointRadius: "8", fillColor: "#30E900", fillOpacity: "0.7", strokeColor: "#197700", strokeWidth: 2.5, graphicZIndex: 1, externalGraphic: "<?php echo url::file_loc('img') . 'media/img/openlayers/marker-green.png'; ?> ", graphicOpacity: 1, graphicWidth: 21, graphicHeight: 25, graphicXOffset: -14, graphicYOffset: -27 }); style3 = new OpenLayers.Style({ pointRadius: "8", fillColor: "#30E900", fillOpacity: "0.7", strokeColor: "#197700", strokeWidth: 2.5, graphicZIndex: 1
<div id="custom_forms"> <?php foreach ($disp_custom_fields as $field_id => $field_property) { echo "<div class=\"row\">"; echo "<h4>" . $field_property['field_name'] . "</h4>"; if ($field_property['field_type'] == 1) { // Text Field // Is this a date field? if ($field_property['field_isdate'] == 1) { echo form::input('custom_field[' . $field_id . ']', $form['custom_field'][$field_id], ' id="custom_field_' . $field_id . '" class="text"'); echo '<script type="text/javascript"> $(document).ready(function() { $("#custom_field_' . $field_id . '").datepicker({ showOn: "both", buttonImage: "' . url::file_loc('img') . 'media/img/icon-calendar.gif", buttonImageOnly: true }); }); </script>'; } else { echo form::input('custom_field[' . $field_id . ']', $form['custom_field'][$field_id], ' id="custom_field_' . $field_id . '" class="text custom_text"'); } } elseif ($field_property['field_type'] == 2) { // TextArea Field echo form::textarea('custom_field[' . $field_id . ']', $form['custom_field'][$field_id], ' class="custom_text" rows="3"'); } echo "</div>"; } ?> </div>
/** * @see Requirements::ieCSS() */ public function ieCSS($version, $name, $media = null) { $this->customHeadTags("<!--[if {$version}]>" . html::stylesheet(url::file_loc('css') . $name, $media, TRUE) . "<![endif]-->", 'iecss-' . $name); return; }
// Table Row Sort if ($tablerowsort_enabled) { echo html::script(url::file_loc('js') . 'media/js/jquery.tablednd_0_5', true); } // JSON2 for IE+ if ($json2_enabled) { echo html::script(url::file_loc('js') . 'media/js/json2', true); } // Turn on picbox echo html::script(url::file_loc('js') . 'media/js/picbox', true); echo html::stylesheet(url::file_loc('css') . 'media/css/picbox/picbox'); //Turn on jwysiwyg echo html::stylesheet(url::file_loc('css') . 'media/js/jwysiwyg/jwysiwyg/jquery.wysiwyg.css'); // Header Nav echo html::script(url::file_loc('js') . 'media/js/global', true); echo html::stylesheet(url::file_loc('css') . 'media/css/global', '', true); // Render CSS and Javascript Files from Plugins echo plugin::render('stylesheet'); echo plugin::render('javascript'); // Action::header_scripts_admin - Additional Inline Scripts Event::run('ushahidi_action.header_scripts_admin'); ?> <script type="text/javascript" charset="utf-8"> <?php echo $js . "\n"; ?> function info_search(){ $("#info-search").submit(); } function show_addedit(toggle){ var csrfToken = $('[name="form_auth_token"]').val();
// XXX: Perhaps delcare 150 as constant $incident_description = text::limit_chars(strip_tags($incident_description), 140, "...", true); $incident_date = date('H:i M d, Y', strtotime($incident->incident_date)); //$incident_time = date('H:i', strtotime($incident->incident_date)); $location_id = $incident->location_id; $location_name = $incident->location->location_name; $incident_verified = $incident->incident_verified; if ($incident_verified) { $incident_verified = '<span class="r_verified">' . Kohana::lang('ui_main.verified') . '</span>'; $incident_verified_class = "verified"; } else { $incident_verified = '<span class="r_unverified">' . Kohana::lang('ui_main.unverified') . '</span>'; $incident_verified_class = "unverified"; } $comment_count = $incident->comment->count(); $incident_thumb = url::file_loc('img') . "media/img/report-thumb-default.jpg"; $media = $incident->media; if ($media->count()) { foreach ($media as $photo) { if ($photo->media_thumb) { // Get the first thumb $incident_thumb = url::convert_uploaded_to_abs($photo->media_thumb); break; } } } ?> <div id="<?php echo $incident_id; ?> " class="rb_report <?php
echo url::file_loc('img') . 'media/img/'; ?> gray_up.png"); $('#odown_' + id).attr("src","<?php echo url::file_loc('img') . 'media/img/'; ?> gray_down.png"); $('#orating_' + id).html(data.rating); } else if (type == 'comment') { $('#cup_' + id).attr("src","<?php echo url::file_loc('img') . 'media/img/'; ?> gray_up.png"); $('#cdown_' + id).attr("src","<?php echo url::file_loc('img') . 'media/img/'; ?> gray_down.png"); $('#crating_' + id).html(data.rating); } } else { if(typeof(data.message) != 'undefined') { alert(data.message); } } $('#' + loader).html(''); }, "json"); }
?> </span><br /> <div class="c_push"> <?php print form::input('api_yahoo', $form['api_yahoo'], ' class="text"'); ?> </div> </div> </div> <input type="image" src="<?php echo url::file_loc('img'); ?> media/img/admin/btn-save-settings.gif" class="save-rep-btn" style="margin-left: 0px;" /> <input type="image" src="<?php echo url::file_loc('img'); ?> media/img/admin/btn-cancel.gif" class="cancel-btn" /> </div> <div class="r-column"> <h4><a href="#" class="tooltip" title="<?php echo Kohana::lang("tooltips.settings_configure_map"); ?> "><?php echo Kohana::lang('settings.configure_map'); ?> </a></h4> <div style="width: 279px; float: left; margin-top: 10px;"> <span class="bold_span"><?php echo Kohana::lang('settings.default_zoom_level');
public function _add_scripts() { echo html::script(url::file_loc('js') . 'media/js/jquery.validate.min', true); echo html::script(url::file_loc('js') . 'media/js/jquery.ui.min', true); }