当前位置: 首页>>代码示例>>PHP>>正文


PHP url::file_loc方法代码示例

本文整理汇总了PHP中url::file_loc方法的典型用法代码示例。如果您正苦于以下问题:PHP url::file_loc方法的具体用法?PHP url::file_loc怎么用?PHP url::file_loc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在url的用法示例。


在下文中一共展示了url::file_loc方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 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');
 }
开发者ID:rabbit09,项目名称:Taarifa_Web,代码行数:10,代码来源:Themes.php

示例2:

<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">
开发者ID:niiyatii,项目名称:crowdmap,代码行数:31,代码来源:main.php

示例3:

}
// 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) {
开发者ID:neumicro,项目名称:Ushahidi_Web_Dev,代码行数:31,代码来源:layout.php

示例4: geoCode

		    $("#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);
开发者ID:huslage,项目名称:Ushahidi_Web,代码行数:31,代码来源:alerts_js.php

示例5: elseif

             } 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']) {
开发者ID:uws-eresearch,项目名称:invisiblecity-ushahidi,代码行数:31,代码来源:submit_custom_forms.php

示例6: requirements

 /**
  * 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');
//.........这里部分代码省略.........
开发者ID:niiyatii,项目名称:crowdmap,代码行数:101,代码来源:Themes.php

示例7:

<!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;
?>
开发者ID:rootz,项目名称:Ushahidi_Web,代码行数:31,代码来源:login.php

示例8:

	<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>
开发者ID:niiyatii,项目名称:crowdmap,代码行数:30,代码来源:download_reports.php

示例9: elseif

        $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 .= "&nbsp;<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>&nbsp;|&nbsp;\n\t\t\t\t\t\t\t\t\t<a href=\"javascript:fieldAction('d','DELETE'," . $field_id . "," . $form_id . "," . $field_type . ");\">DELETE</a>&nbsp;|&nbsp;\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>&nbsp;|&nbsp;\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;
开发者ID:huslage,项目名称:Ushahidi_Web,代码行数:31,代码来源:forms.php

示例10:

					<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 
开发者ID:nanangsyaifudin,项目名称:HAC-2012,代码行数:31,代码来源:themes.php

示例11:

",
		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
开发者ID:nanangsyaifudin,项目名称:HAC-2012,代码行数:31,代码来源:actions_js.php

示例12: foreach

							
							<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>			
开发者ID:rabbit09,项目名称:Taarifa_Web,代码行数:30,代码来源:reports_edit.php

示例13: ieCSS

 /**
  * @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;
 }
开发者ID:Dirichi,项目名称:Ushahidi_Web,代码行数:8,代码来源:Requirements.php

示例14:

// 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();
开发者ID:nemmy,项目名称:Ushahidi_Web,代码行数:31,代码来源:layout.php

示例15: date

    // 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 
开发者ID:nemmy,项目名称:Ushahidi_Web,代码行数:31,代码来源:reports_listing.php


注:本文中的url::file_loc方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。