コード例 #1
0
ファイル: index.php プロジェクト: allfineok/php-sample
        echo $lang['Uploader'];
        ?>
</th>
                                            <th width="200"><?php 
        echo $lang['Steps'];
        ?>
</th>
                                            <th></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php 
        foreach ($attachData as $attach) {
            ?>
                                            <?php 
            $guser = User::model()->fetchByUid($attach['uid']);
            ?>
                                            <tr id='attach_<?php 
            echo $attach['aid'];
            ?>
'>
                                                <td><img src="<?php 
            echo $attach['iconsmall'];
            ?>
" alt="<?php 
            echo $attach['filename'];
            ?>
" /></td>
                                                <td>
                                                    <div class="attachment-name">
                                                        <em><?php 
コード例 #2
0
ファイル: form.php プロジェクト: allfineok/php-sample
		<li>
			<div><?php 
echo $run['name'];
?>
</div>
			<div class="content">
				<p class="fss">[<?php 
echo $run['runid'];
?>
] <?php 
echo $flow['name'];
?>
</p>
				<p class="fss"><?php 
echo Ibos::lang("Begin user");
echo User::model()->fetchRealnameByUid($run['beginuser']);
?>
</p>
				<p class="fss"><?php 
echo Ibos::lang("Begin time");
echo DateTime::getlunarCalendar($run['begintime']);
?>
</p>
			</div>
			<button class="button small wf-vsf-btn" -data-evt="viewSourceForm" data-param='{"runId": 1}'>
				<a href="javascript:void(0);" onclick="window.open('<?php 
echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?r=workflow/preview/print&key=' . $_REQUEST['key'];
?>
', '_blank', 'location=yes')"><i class="moicon mo-search-gray"></i>
				<?php 
echo Ibos::lang("Viewform");
コード例 #3
0
ファイル: show.php プロジェクト: allfineok/php-sample
    ?>
						</div>
					<?php 
}
?>
					<div class="art-halving-line"></div>
					<div class="art-desc mb ">
						<ul class="art-desc-list">
							<li>
								<strong><?php 
echo $lang['News'];
?>
</strong>
								<div class="art-desc-body">
									<?php 
echo User::model()->fetchRealNameByUid($data['author']);
?>
									<span class="ilsep"><?php 
echo $lang['Posted on'];
?>
</span>
									<?php 
echo $data['addtime'];
?>
									<span class="ilsep">|</span>
									<?php 
echo $lang['Approver'];
?>
:<?php 
echo $data['approver'];
?>
コード例 #4
0
ファイル: detail.php プロジェクト: allfineok/php-sample
" width="150px" height="90px" />
        <?php 
}
?>
    </span>
</div>
<table class="rp-detail-table">
    <tbody>
        <tr>
            <td colspan="3">
                <div class="rp-detail-header curp clearfix" data-action="hideReportDetail">
                    <div class="mini-date fill-ss pull-left">
                        <h4>
                            <?php 
if ($fromController == 'review') {
    echo User::model()->fetchRealnameByUid($report['uid']);
}
?>
                            <?php 
echo $report['subject'];
?>
                        </h4>
                    </div>
                    <div class="rp-detail-time pull-right">
                        <i class="o-rp-clock"></i>
                        <span><?php 
echo $lang['Submitted'] . $report['addtime'];
?>
</span>
                    </div>
                </div>
コード例 #5
0
ファイル: index.php プロジェクト: allfineok/php-sample
 // 安装演示数据
 if (isset($_SESSION['extData']) && $_SESSION['extData'] == md5('extData')) {
     $sqlData = file_get_contents(PATH_ROOT . './install/data/installExtra.sql');
     $search = array('{time}', '{time1}', '{time2}', '{date}', '{date+1}');
     $replace = array(time(), strtotime('-1 hour'), strtotime('+1 hour'), strtotime(date('Y-m-d')), strtotime('-1 day', strtotime(date('Y-m-d'))));
     $sql = str_replace($search, $replace, $sqlData);
     executeSql($sql);
     unset($_SESSION['extData']);
 }
 // 安装工作流数据
 if (getIsInstall('workflow')) {
     $sqlFlowData = file_get_contents(PATH_ROOT . './install/data/installFlow.sql');
     executeSql($sqlFlowData);
 }
 // 为用户添加GUID
 $users = User::model()->fetchAll();
 foreach ($users as $user) {
     $guid = String::createGuid();
     Yii::app()->db->createCommand()->update("{{user}}", array('guid' => $guid), "`uid` = '{$user['uid']}'");
 }
 $cacheArr = array('AuthItem', 'CreditRule', 'Department', 'Ipbanned', 'Nav', 'NotifyNode', 'Role', 'Position', 'PositionCategory', 'Setting', 'UserGroup');
 foreach ($cacheArr as $cache) {
     Cache::update($cache);
 }
 Cache::load('usergroup');
 // 要注意小写
 Cache::update('Users');
 // 因为用户缓存要依赖usergroup缓存,所以放在最后单独更新
 file_put_contents(PATH_ROOT . 'data/install.lock', '');
 $configfile = CONFIG_PATH . 'config.php';
 $config = (require $configfile);
コード例 #6
0
ファイル: detail.php プロジェクト: allfineok/php-sample
						</div>
					<?php 
} else {
    ?>
						<div class="da-detail-usi pull-left">
							<a href="javascript:;" class="avatar-circle">
								<img class="mbm" src="static.php?type=avatar&uid=<?php 
    echo $diary['uid'];
    ?>
&size=middle&engine=<?php 
    echo ENGINE;
    ?>
" alt="">
							</a>
							<span><?php 
    echo User::model()->fetchRealnameByUid($diary['uid']) . $lang['Log'];
    ?>
</span>
						</div>
                    <?php 
}
?>
					<div class="da-detail-time pull-right">
						<i class="o-da-clock"></i>
						<span><?php 
echo $lang['Submitted'] . $diary['addtime'];
?>
</span>
					</div>
				</div>
			</td>
コード例 #7
0
ファイル: content.php プロジェクト: allfineok/php-sample
<div id="origin_email_<?php 
echo $body['bodyid'];
?>
">
<table width="100%">
    <tbody>
        <tr>
            <td valign="top" style="word-break:break-all;border-color:#ffffff;background-color:#efefef;" width="20%">
				<?php 
echo $lang['Sender'];
?>
<br />
            </td>
            <td valign="top" style="border-color:#ffffff;background-color:#efefef;">
				<?php 
echo !empty($body['fromwebmail']) ? $body['fromwebmail'] : User::model()->fetchRealnameByUid($body['fromid']);
?>
            </td>
        </tr>
        <tr>
            <td valign="top" style="word-break:break-all;border-color:#ffffff;background-color:#efefef;">
				<?php 
echo $lang['Send time'];
?>
<br />
            </td>
            <td valign="top" style="border-color:#ffffff;background-color:#efefef;">
				<?php 
echo Convert::formatDate($body['sendtime']);
?>
( <?php 
コード例 #8
0
ファイル: member.php プロジェクト: allfineok/php-sample
					<div>
						<form action="<?php 
echo $this->createUrl('position/edit', array('op' => 'member'));
?>
" method="post">
							<div class="posr" id="position_member">
								<div class="fill-nn position-mumber-wrap">
									<ul class="org-member-list clearfix" id="org_member_list">
										<?php 
$depts = DepartmentUtil::loadDepartment();
?>
										<?php 
foreach ($pageUids as $uid) {
    ?>
											<?php 
    $user = User::model()->fetchByUid($uid);
    if (empty($user)) {
        continue;
    }
    ?>
											<li id="member_u_<?php 
    echo $uid;
    ?>
">
												<a href="javascript:;" class="cbtn o-trash pull-right" data-act="removeMember" data-id="u_<?php 
    echo $uid;
    ?>
"></a>
												<div class="avatar-box">
													<a href="javascript:;" class="avatar-circle"><img src="static.php?type=avatar&uid=<?php 
    echo $user['uid'];
コード例 #9
0
<?php

use application\modules\user\model\User;
?>

<div style="width:493px; margin:0 auto;">
    <span style=" color:#1180c6;font-size:14px;line-height:30px;font-weight:bold"><?php 
echo $body['subject'];
?>
</span>
</div>
<div style="width:493px; margin:0 auto;">
    <span style=" color:#818797; font-size:12px; line-height:30px"><?php 
echo User::model()->fetchRealnameByUid($body['fromid']);
?>
  发送于 <?php 
echo date('Y-m-d H:i', $body['sendtime']);
?>
</span>
</div>
<div style="width:493px; margin:0 auto;">
    <span style=" color:#818797; font-size:12px; line-height:30px">收件人:<?php 
echo User::model()->fetchRealnamesByUids($body['toids']);
?>
  抄送:<?php 
echo User::model()->fetchRealnamesByUids($body['copytoids']);
?>
</span>
</div>
<?php 
echo $body['content'];
コード例 #10
0
ファイル: flow.php プロジェクト: allfineok/php-sample
?>
                    </div>
                </div>
                <?php 
if (!empty($remindUid)) {
    ?>
                    <div class="fill">
                        <div id="confirm_remind" style="width: 450px;display: none;">
                            <table class="table table-condensed" style="margin-bottom: 0;">
                                <tr>
                                    <th style="width: 80px;"><?php 
    echo $lang['Recipient'];
    ?>
</th>
                                    <td><?php 
    echo User::model()->fetchRealnamesByUids($remindUid);
    ?>
</td>
                                </tr>
                                <tr>
                                    <th><?php 
    echo $lang['Remind content'];
    ?>
</th>
                                    <td>
                                        <input class="input input-small" type="text" id="message" name="message" value="<?php 
    echo $lang['Remind content example'];
    ?>
" />
                                        <input type="hidden" id="toid" value="<?php 
    echo implode(',', $remindUid);
コード例 #11
0
ファイル: manager.php プロジェクト: allfineok/php-sample
?>
</th>
									<th width="120"><?php 
echo $lang['Send time'];
?>
</th>
								</tr>
							</thead>
							<tbody>
								<?php 
foreach ($list as $data) {
    ?>
									<?php 
    $toUser = User::model()->fetchByUid($data['touid']);
    if ($data['uid']) {
        $user = User::model()->fetchByUid($data['uid']);
        $userName = $user['realname'];
    } else {
        $userName = $lang['System'];
    }
    ?>
									<tr id="list_tr_<?php 
    echo $data['id'];
    ?>
">
										<td>
											<label class="checkbox" for="checkbox_<?php 
    echo $data['id'];
    ?>
"><span class="icon"></span><span class="icon-to-fade"></span>
												<input type="checkbox" value="<?php