示例#1
0
<script src='<?php 
echo STATICURL;
?>
/js/lib/zTree/jquery.ztree.all-3.5.min.js?<?php 
echo VERHASH;
?>
'></script>
<script src='<?php 
echo STATICURL;
?>
/js/lib/Select2/select2.js?<?php 
echo VERHASH;
?>
'></script>
<script src='<?php 
echo File::fileName('data/org.js');
?>
?<?php 
echo VERHASH;
?>
'></script>
<script src='<?php 
echo STATICURL;
?>
/js/src/common.js?<?php 
echo VERHASH;
?>
'></script>
<script src='<?php 
echo STATICURL;
?>
示例#2
0
</th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>
												<div id="stamp_item_box" class="stamp-item-box">
													<?php 
foreach ($diffStampIds as $key => $diffStampId) {
    ?>
														<div class="stamp-item" data-node-type="stampItem" data-stamp-id="<?php 
    echo $diffStampId;
    ?>
">
															<img src="<?php 
    echo File::fileName('data/stamp/' . Stamp::model()->fetchIconById($diffStampId));
    ?>
" alt=""  width="60" height="24">
														</div>    
													<?php 
}
?>
												</div>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
示例#3
0
					</a>
				</div>
			</div>
			<div class="page-list-mainer posr">

				<table class="da-detail-table">
					<tbody>
					<div class="da-stamp">
						<?php 
if ($diary['stamp'] > 0) {
    ?>
<img id="stamp_<?php 
    echo $diary['diaryid'];
    ?>
" src="<?php 
    echo File::fileName(Stamp::STAMP_PATH . $stampUrl);
    ?>
" width="150px" height="90px" /><?php 
}
?>
					</div>
					<!-- 原计划 -->
					<?php 
if (count($data['originalPlanList']) > 0) {
    ?>
						<?php 
    foreach ($data['originalPlanList'] as $key => $originalPlan) {
        ?>
							<tr class="da-detail-row">
								<?php 
        if ($key == 0) {
示例#4
0
?>
',
				STATIC_URL: '<?php 
echo STATICURL;
?>
',
				formHash: '<?php 
echo FORMHASH;
?>
',
				page: "login",
				"loginBg": [
<?php 
$image = '';
foreach ($loginBg as $bg) {
    $image .= '"' . File::fileName(LoginTemplate::BG_PATH . $bg['image']) . '"' . ',';
}
echo trim($image, ',');
?>
				]
			};

        </script>
        <script src='<?php 
echo STATICURL;
?>
/js/lang/zh-cn.js?<?php 
echo VERHASH;
?>
'></script>
        <script src='<?php 
示例#5
0
								<div id="gallery" class="ad-gallery">
									<div class="ad-image-wrapper"></div>
									<!-- <div class="ad-controls"></div> -->
									<div class="ad-nav">
										<div class="ad-thumbs">
											<ul class="ad-thumb-list">
												<?php 
    foreach ($pictureData as $key => $picture) {
        ?>
													<li>
														<a href="<?php 
        echo File::fileName($picture['filepath']);
        ?>
">
															<img src="<?php 
        echo File::fileName($picture['filepath']);
        ?>
" alt="<?php 
        echo $picture['filename'];
        ?>
" />
															<!-- 此处输出索引和总张数 -->
															<span><em><?php 
        echo $key + 1;
        ?>
/<?php 
        echo count($pictureData);
        ?>
</em></span>
														</a>
													</li>
示例#6
0
?>
',
		issetStamp: '<?php 
echo $this->issetStamp();
?>
',
		stampEnable: '<?php 
echo $dashboardConfig["stampenable"];
?>
',
		stamps: <?php 
echo $this->getStamp();
?>
,
		stampPath: '<?php 
echo File::fileName(Stamp::STAMP_PATH);
?>
',
		autoReview: '<?php 
echo $dashboardConfig["autoreview"];
?>
'
	})
</script>
<script src="<?php 
echo STATICURL;
?>
/js/lib/lightbox/js/lightbox.js?<?php 
echo VERHASH;
?>
"></script>
示例#7
0
					</div>
				</div>
				<div>
					<ul class="grid-list pic-list clearfix" id="pic_list">
						<?php 
if (!empty($list)) {
    ?>
							<?php 
    foreach ($list as $bg) {
        ?>
								<li>
									<img <?php 
        if (!empty($bg['image'])) {
            ?>
src="<?php 
            echo File::fileName('data/login/' . $bg['image']);
            ?>
"<?php 
        }
        ?>
 />
									<input type="hidden" name="bgs[<?php 
        echo $bg['id'];
        ?>
][image]" value="<?php 
        echo $bg['image'];
        ?>
" />
									<div class="pic-item-body">
										<div class="pic-upload-bg"></div>
										<div class="pic-upload-btn">
示例#8
0
/**
 * 处理附件下载
 * @param string $userId 微信用户ID
 * @param integer $appId 应用ID
 * @param string $aid 带附件类型的附件ID字符串
 * @return mixed
 */
function doAttachDownload($userId, $appId, $aid)
{
    $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    $isIphone = strpos($agent, 'iphone') ? true : false;
    list($type, $id) = explode('/', $aid);
    if ($type == 'cloud') {
        list($id, $cloud) = explode('-', $id);
    } else {
        $cloud = 0;
    }
    $attachs = Attach::getAttachData($id);
    $attach = array_shift($attachs);
    if ($attach['uid'] != Ibos::app()->user->uid) {
        return close('您没有权限下载此文件');
    }
    $filepath = File::getAttachUrl() . '/' . $attach['attachment'];
    if ($cloud) {
        $core = new FileCloud($cloud);
        $url = $core->getRealUrl($filepath);
    } else {
        $url = Ibos::app()->request->getHostInfo() . '/' . $filepath;
    }
    if ($isIphone) {
        header('Location:' . $url, true);
        exit;
    } else {
        Env::iExit("<h1>微信现只支持IOS系统在微信内打开下载,请长按链接选择打开或者复制下载链接到手机浏览器下载<br/>{$url}</h1>");
    }
}
示例#9
0
            echo Ibos::app()->urlManager->createUrl('diary/review/show', array('diaryid' => $review['diaryid']));
            ?>
"><?php 
            echo $review['user']['realname'] . ' &nbsp; ' . $review['diarytime'];
            ?>
</a>
                        </td>
                        <td width="60">
							<?php 
            if ($review['stamp'] != 0) {
                ?>
							<?php 
                $iconUrl = Stamp::model()->fetchIconById($review['stamp']);
                ?>
                            <img src="<?php 
                echo File::fileName(Stamp::STAMP_PATH) . $iconUrl;
                ?>
" alt="">
							<?php 
            }
            ?>
                        </td>
                    </tr>
                    <?php 
        }
        ?>
                </tbody>
            </table>
            <?php 
        if (count($reviewRecordList) + count($noReviewRecordList) > 4) {
            ?>
示例#10
0
				<form action="<?php 
echo $this->createUrl('unit/index');
?>
" method="post" enctype="multipart/form-data" class="enterprise-info-form form-horizontal">
					<div class="control-group">
						<label class="control-label"><?php 
echo $lang['Enterprise logo'];
?>
</label>
						<div class="controls">
							<?php 
if (!empty($unit['logourl'])) {
    ?>
								<div class="showlogo pull-left">
									<img src="<?php 
    echo File::fileName($unit['logourl']);
    ?>
" alt="<?php 
    echo $lang['Enterprise logo'];
    ?>
" class="custom-logo" id="upload_img">
									<input type="hidden" id='logoUrl' name="logourl" value="<?php 
    echo $unit['logourl'];
    ?>
">
								</div>
								<div class="showupload pull-left" style="display: none;">
									<input type="file" name="logo" />
								</div>
								<button id="switchLogo" type="button" class="btn btn-mini pull-right">更换logo</button>
							<?php 
示例#11
0
									<div class="stamp-icon">
										<div class="stamp-icon-uploadbg"></div>
										<div class="stamp-icon-upload" id="stamp_icon_upload_<?php 
        echo $stamp['id'];
        ?>
_wrap">
											<span id="stamp_icon_upload_<?php 
        echo $stamp['id'];
        ?>
">
										</div>
										<img <?php 
        if (!empty($stamp['icon'])) {
            ?>
src="<?php 
            echo File::fileName($stampUrl . $stamp['icon']);
            ?>
"<?php 
        }
        ?>
 alt="<?php 
        echo $stamp['code'];
        ?>
" />
										<input type="hidden" name="stamps[<?php 
        echo $stamp['id'];
        ?>
][icon]" value="<?php 
        echo $stamp['icon'];
        ?>
" />
示例#12
0
									<div class="ad-nav">
										<div class="ad-thumbs">
											<ul class="ad-thumb-list">
												<?php 
    $attachDir = File::getAttachUrl() . '/';
    ?>
												<?php 
    foreach ($pictureData as $key => $picture) {
        ?>
													<li>
														<a href="<?php 
        echo $attachDir . File::fileName($picture['attachment']);
        ?>
">
															<img src="<?php 
        echo $attachDir . File::fileName($picture['attachment']);
        ?>
" alt="<?php 
        echo $picture['filename'];
        ?>
" />
															<!-- 此处输出索引和总张数 -->
															<span><em><?php 
        echo $key + 1;
        ?>
/<?php 
        echo count($pictureData);
        ?>
</em></span>
														</a>
													</li>