本文整理汇总了PHP中F::uploadUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP F::uploadUrl方法的具体用法?PHP F::uploadUrl怎么用?PHP F::uploadUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类F
的用法示例。
在下文中一共展示了F::uploadUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public function run()
{
$userid = Yii::app()->user->id;
$organID = Yii::app()->user->getOrganID();
$sessionlist = RemindService::getSessionList($userid);
$logo = F::uploadUrl() . Organ::model()->findByPk($organID)->attributes['Logo'];
$this->render('privatechat', array("userid" => $userid, "sessionlist" => $sessionlist, 'logo' => $logo));
}
示例2: run
public function run()
{
$re = array('OrganID' => $this->sellerID, 'rows' => 3, 'page' => 1);
$serviceID = Yii::app()->user->getOrganID();
$organID = $this->sellerID;
$sql = "select ID,Name,ProPrice from pap_goods where IsDelete=1 and IsSale=1 and IsPro=1 and OrganID={$organID} limit 0,3 ";
$goods = Yii::app()->papdb->createCommand($sql)->queryAll();
foreach ($goods as $k => $v) {
$image = MallService::getOneGoodsImage($v['ID']);
if (!$image) {
$goods[$k]['image'] = F::uploadUrl() . 'dealer/goods-img-big.jpg';
} else {
$goods[$k]['image'] = F::uploadUrl() . $image;
}
}
$this->render("goods", array('goods' => $goods));
}
示例3: actionSendmsg
public function actionSendmsg()
{
if (Yii::app()->request->isAjaxRequest) {
$userid = Yii::app()->user->getOrganID();
$touserid = Yii::app()->request->getParam('touserid');
$msg = Yii::app()->request->getParam('msg');
$imgsrc = Yii::app()->request->getParam('imgsrc');
if (!$imgsrc) {
$imgsrc = F::uploadUrl() . Organ::model()->findByPk($touserid)->attributes['Logo'];
}
echo json_encode(array('rows' => array(array('type' => 'mine', 'msg' => $msg, 'time' => date('Y-m-d H:i:s'), 'id' => $userid), array('type' => 'receive', 'msg' => '么么,你好!', 'time' => date('Y-m-d H:i:s'), 'id' => $touserid, 'imgsrc' => $imgsrc))));
}
}
示例4:
?>
";
var Yii_jpdataUrl = '<?php
echo F::baseUrl() . '/jpdata';
?>
';
var Yii_jpdata_baseUrl = "<?php
echo Yii::app()->createUrl('/jpdata');
?>
";
var Yii_theme_baseUrl = "<?php
echo F::themeUrl();
?>
";
var Yii_uploadUrl = "<?php
echo F::uploadUrl();
?>
";
</script>
<body>
<div class="ui-container" id="scren">
<div class="global-head">
<div class="global-head-area">
<div class="logo float_l"><a href=""><img src="<?php
echo F::themeUrl();
?>
/images/login/logo.png"></a></div>
<div class="float_l width180">
<a href="" class="float_l"><img src="<?php
echo F::themeUrl();
示例5: date
.jg_show { margin:10px 20px}
.jg_show ul li{ float:left; margin:10px; border:1px solid #ebebeb; padding:5px }
.jg_show ul li img{ width:200px; height:150px}
.row {line-heigh:25px;margin:10px 10px 5px 0px;}
.gs_info{margin:30px}
</style>
<link rel="stylesheet" href="<?php
echo F::themeUrl();
?>
/css/companymanage.css">
<div class="bor_back m-top" style="height:850px">
<p class="txxx txxx3">账户信息管理</p>
<div class="txxx_info4">
<div style="border-bottom:1px solid #cbd7e5; padding-bottom:20px; margin:10px 20px">
<div class="float_l"><img width="100" height="100" src="<?php
echo F::uploadUrl() . ($model->organ->Logo ? $model->organ->Logo : 'logo/touxiang.jpg');
?>
"></div>
<div class="float_l m_left20">
<p class="f_weight">用户名:<span><?php
echo $model->UserName;
?>
</span></p>
<ul class="membership">
<li class="mem_leibie">账户类别:<span><?php
echo $model->organ->Type;
?>
</span></li>
<li class="mem_effective">账户有效期:<span><?php
echo date("Y-m-d H:i:s", $model->organ->CreateTime) . " 至 " . ($model->organ->ExpirationTime ? date("Y-m-d H:i:s", $model->organ->ExpirationTime) : '2020-01-01');
?>
示例6: foreach
?>
</td>
<td colspan=3>
<div class="form-row" >
<input type='file' name='file_upload' id="file_upload">
<input type="hidden" value="上传" id="file-upload-start">
<p id='hidden_upnames'></p>
<p class="form-row" id="showimglist" style="position: relative;">
<?php
if ($photo) {
?>
<?php
foreach ($photo as $value) {
?>
<?php
$picurl = F::uploadUrl() . $value['photoName'];
?>
<span class='showimages'>
<img style='width:80px;height:80px;' src="<?php
echo $picurl;
?>
">
<span key="<?php
echo $value['photoName'];
?>
" class='close icon-close-green xx'></span>
</span>
<?php
}
?>
<?php
示例7: foreach
</div>
</div>
<div class='jgcx photos content-rows15 bg-white'>
<div class='title'> 机构照片</div>
<div class='pos-r'>
<a href='javascript:;' class="arr-l scroll-left"></a>
<div class="photos-list">
<ul>
<?php
if (!empty($photo)) {
?>
<?php
foreach ($photo as $value) {
?>
<li><?php
$src = F::uploadUrl() . $value['photoName'];
?>
<a href="#"><img src="<?php
echo $src;
?>
"></a>
<!--<div class='text-c mt1em'><a href="#">说明文字</a></div>-->
</li>
<?php
}
?>
<?php
}
?>
</ul>
</div>
示例8: array
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'menu-form', 'htmlOptions' => array('enctype' => 'multipart/form-data'), 'enableAjaxValidation' => false));
$menuurl = F::uploadUrl() . 'common/frontmenu/';
?>
<p class="help-block">Fields with <span class="required">*</span> are required.</p>
<?php
echo $form->errorSummary($model);
?>
<?php
echo CHtml::dropDownList('mainMenu', $model->RootID, CHtml::listData(CActiveRecord::model('FrontMenu')->findAllByAttributes(array("ParentID" => 0)), 'ID', 'Name'), array('prompt' => '选择主菜单', 'ajax' => array('type' => 'POST', 'url' => $this->createUrl('getChildMenu'), 'data' => array('ID' => 'js:this.value', 'YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'success' => 'function(data) {
$("#secondMenu").html(data);
$("#secondMenu").show();
}')));
if ($model->RootID && $model->ParentID != $model->RootID) {
$sonmenu = FrontMenu::model()->findAllByAttributes(array("ParentID" => $model->RootID));
$sonmenu = CHtml::listData($sonmenu, 'ID', 'Name');
} else {
$sonmenu = array();
}
echo CHtml::dropDownList('secondMenu', $model->ParentID, $sonmenu, array('prompt' => '选择菜单', 'ajax' => array('type' => 'POST', 'url' => $this->createUrl('getChildMenu'), 'update' => '#thirdMenu', 'data' => array('ID' => 'js:this.value', 'YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'success' => 'function(data) {
$("#thirdMenu").html(data);
$("#thirdMenu").show();
}')));
echo CHtml::dropDownList('thirdMenu', '', array(), array('prompt' => '选择菜单'));
?>
<?php
示例9:
}
$avgscore = 0;
}
}
$ul1 .= "</ul>";
$ul2 .= "</ul>";
$jdt = EvaluateService::getJdtCss($praise);
?>
<!--信用管理-->
<div class="mywork">
<h3>我的信用管理</h3>
<p>信用信息</p>
<div style="width:100%; height:108px">
<div class="fl" style=" width:97px; height:97px; padding-left:25px;">
<img src="<?php
echo F::uploadUrl() . $imgUrl;
?>
" class="flimg"/>
</div>
<dl class="fl">
<dd><label style="margin-left:12px;">用户名:</label><a><?php
echo Yii::app()->user->getOrganName();
?>
</a></dd>
<dd><label style="float:left">信用等级:</label><?php
echo $xylvstr;
//echo $goodsscore
?>
</dd>
<dd><label style="margin-left:12px;float:left;display:block">好评率:</label>
<?php
示例10: foreach
<?php
foreach ($menu as $m) {
?>
<div class="mukuai float_l zxq <?php
if ($m["isLarge"] == 1) {
echo "mukuai2";
}
?>
">
<div class="cx">
<div class="float_l width150" style="height:51px"><img src="<?php
echo F::uploadUrl() . 'common/frontmenu/' . $m["menuIcon"];
?>
"></div>
<!--删除-->
<!-- <div class="float_r sc">
<div class="sc_info"></div>
</div>-->
<!--隐藏-->
<div style="border:none" class="float_r yc">
<div class="yc_info"></div>
</div>
</div>
<div class="<?php
if ($m["isLarge"] == 1) {
echo "ycbf2";
} else {
echo "ycbf";
}
?>
示例11:
</div>
</div>
<div class="jxs_detail">
<p class="jxs_detail_lm">营业执照</p>
<div class="jxs_detail2">
<p><label class="" style="margin-left:12px">注册号:</label><span><?php
echo $model['Registration'];
?>
</span></p>
<p><label style="vertical-align:top;">执照照片:</label>
<span style="">
<?php
if (!empty($model['BLPoto'])) {
?>
<img src="<?php
echo F::uploadUrl() . $model['BLPoto'];
?>
" style="width:360px;height:240px;margin-top:5px"/>
<?php
} else {
?>
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAMDQ0MDQ8NDg0PDg4MDQ0ODQ8MDwwNFBEWFhQRFBQYHCggGRonGxUVITIhJSkrLi4uFx8/ODMuOCgtLisBCgoKBQUFDgUFDisZExkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAOEA4QMBIgACEQEDEQH/xAAbAAEBAAMBAQEAAAAAAAAAAAAAAQIDBAUGB//EADsQAAIBAgMEBwUGBQUAAAAAAAABAgMRBBIhBTFBURMyUmFxgZEiQqGx0QYjU2JywRSCkqPwJEOi0uH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/TQABRcgAyTMjWUDMGFy5gMgS5QBSFAFAAFIUAVMgAyKmYlAzUjNGkyTA22FjFSM1IDHKTKbLDKBpykaNziYuIGqwNmUAcIAAAFAgKQAAABSFAqZcxg2lq9EWEZT6sXbtS9lfUDNSMjKGEb607d0I3fq/ob4YSmvxZeMrfIDmKdnQQ3ZJf1sweFhw6RfzX+YHMDZLDtdWV/1x19V9DXJSj1ou3aj7S+qAyBItNXWq7igDIiKARQUCqRmpmCAG65LGtGSmBlYDMgB5gKQCgAAAAAAAGGduWSCzS4v3YeL/Y11KjlLooOzVnUn+HF8F+ZnXQpqKUYq0eXFvm2BlQwyTu/bl2mtI/pXA60uepqUjJSA2plua46mXi0BncXMbrtIeDQGVyW8jG4uBpq0E3dexLtJaPxXE0qTTyzVpcOMZ96f7HXc1Vqaksst2/k4vg0+DAxKc1OpKLdOeskrp7lOPaX7m9TQGRUEUAUFQCwsUoGNgZWAHmgAAUhQAAAGjGV+jhdK85NQpx7U3u8uL7kbzzq0s1aUvdopU4d9aavJ+Ubf1MDqwlNQjlvm1cpy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wDT061aOntxUKdO3NSnJXXhc+V23tT+IfSP2qKk44Wj7tVxeuInz16q7k97085Y6ta3S1FxtCTgvhqB9/iMVKjrVoVox7cejqr0hJy+Bsw2IhWgqlKcZwd0pRd1db149x+eLG1krKtW86kpr0lc6tlbRnTqOpFfex1q01pHF0lv07aW593ID74phQqxqQhUg80JxjOElxi1dP0MwBSFAoIUClIALcpiLgZXBjcAW4IANJLkAAFFgIDIWAxsUoAhQABxbdrOng8VUg7SjQquLW9SyuzO00Y/C/xFCtQenS0p0r8s0WrgfAbTSjVjTirQp0404Lgoq6+SRy5jo1rqLay1XHJOL92tBvND1zHJK6dno1vQGeY3YOTVam1za+D/APDmWuiOuEVRkpVHbJF1Z/lVmkvHeB9t9mZf6VRW6FWvTiuUFUllj5JpeR6p5n2bw8qWDoqay1JqVepHszqyc3HyzW8j0wAAAoIAMri5iAMrgxFwMrgxAGRTG4A1FAAAAAAABQUCWLYpUwMcpkolTMkwPmdv/ZyVScsVhLKrKzq0ZPLGs1unGXuztbXc7K/M+fr49Unkx2Fqxkt8nTa+O5+KbR+kKQbT3/ED80p7VpyeXB4acpvRNU51GvKKZ7OxPszUnONfGrLGMlUjh24zlUqLdKq1dWTs1FPgrvgfZKy3WXhoMwGvKMpsuYtgYWFjJsxuBAAAIAABLgBcpiW4GQIAMQDKwEsLFAAAAAAAIUAS4uABblzGIAyuLmJQLcXIAABLgUXJcgFuQAAAAAAAAADJAAAigAAAAAABkAAAACAACgAAAAIAABAAAAAAACFAAAAD/9k=" style="width:240px;height:240px;margin-top:5px"/>
<?php
}
?>
</span>
</p>
</div>
</div>
<div style="clear:both"></div>
<link rel='stylesheet' href='<?php
示例12:
<div class="shop_company_list">
<div class="goods_list" style="width: 420px; float:left">
<dl>
<dt style="float: left">
<a class="goodname" href="<?php
echo Yii::app()->createUrl('pap/mall/detail');
?>
/goods/<?php
echo $goods['GoodsID'];
?>
" target="_blank" title="<?php
echo $goods['Name'];
?>
">
<img src="<?php
echo $goods['Images'][0]['ImageUrl'] ? F::uploadUrl() . $goods['Images'][0]['ImageUrl'] : F::uploadUrl() . 'common/default-goods.png';
?>
" width="80" height="80"/></dt>
</a>
<dd style="color: #42B241;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" >
<a class="goodname" href="<?php
echo Yii::app()->createUrl('pap/mall/detail');
?>
/goods/<?php
echo $goods['GoodsID'];
?>
" target="_blank" title="<?php
echo $goods['Name'];
?>
">
<?php
示例13: foreach
<input type='file' name='file_upload' id="file_upload"><input type="hidden" value="上传" id="file-upload-start"><span style=" margin-left:10px; color:#666">只能上传1张附件</span>
<br />
</div>
<div class="clear"></div>
<div class="upload_img " >
<ul>
<div class="form-row" id="showimglist" style=" position: relative;padding-left: 60px">
<?php
if (!empty($organphotos)) {
?>
<?php
foreach ($organphotos as $k2 => $organphoto) {
?>
<li style="">
<img src="<?php
echo F::uploadUrl() . $organphoto['Path'];
?>
" style="width:80px;height:80px;">
<span id="delfile" keyid="<?php
echo $organphoto['Path'];
?>
" class="guanbi3"><img src="<?php
echo F::themeUrl();
?>
/images/guanbi3.png"></span>
</li>
<?php
}
?>
<?php
}
示例14:
<br>
<span>地址:</span>
<?php
echo Area::showCity($model['serviceProvince']) . Area::showCity($model['serviceCity']) . Area::showCity($model['serviceArea']) . $model['serviceAddress'];
?>
</div>
</div>
</div>
<div class=' jgcx photos content-rows15 bg-white'>
<div class='title'>机构照片</div>
<div class='pos-r'>
<a href='javascript:;' class="arr-l scroll-left"></a>
<div class="photos-list">
<ul>
<?php
$url = F::uploadUrl() . $photo['photoName'];
?>
<li>
<img src="<?php
echo $url;
?>
" alt="<?php
echo $photo['photoName'];
?>
">
<div class='text-c mt1em'><a href="#">说明文字</a></div>
</li>
</ul>
</div>
<a href='javascript:;' class="arr-r scroll-right"></a>
示例15: array
<div class='info-li'>
<div style='width:204px;float:left;text-align:center'>
<div style='height:80px;'>
<img src="<?php
echo F::uploadUrl() . $data['CarLogo'];
?>
" class="img-make"/>
<span class="span-make"><?php
echo $data['name'];
?>
</span>
</div>
<div class='organ-name onm'>
<a href="<?php
echo Yii::app()->createUrl('servicer/uniondealer/detail', array('dealer' => $data['OrganID']));
?>
" title="<?php
echo $data['OrganName'];
?>
"><?php
echo $data['OrganName'];
?>
</a>
</div>
<?php
if ($data['Phone']) {
?>
<div style='height:20px;line-height:20px'>手机:<?php
echo $data['Phone'];
?>
</div>