Beispiel #1
0
        }
        ?>
					</ul>
				</li>
			<?php 
    }
    ?>
		<?php 
}
?>
	</ul>
</div>
<script>
	Ibos.app.setPageParam({
		'currentSubUid': "<?php 
echo Env::getRequest('uid') ? Env::getRequest('uid') : 0;
?>
"
	});
</script>
<script>
	$(function(){
		// 侧栏伸缩
		var $mngList = $("#mng_list");
		$mngList.on("click", ".g-sub", function() {
			var $el = $(this),
				$item = $el.parents(".mng-item").eq(0),
				$next = $item.next();

			if (!$el.attr('data-init')) {
				$.get(Ibos.app.url("report/review/index", { op: "getsubordinates", act: "stats" }), {
Beispiel #2
0
" class="btn <?php 
$date = Env::getRequest('date');
if ($date == 'yesterday' || !isset($date)) {
    ?>
active<?php 
}
?>
"><?php 
echo $lang['Yesterday'];
?>
</a>
                        <a href="<?php 
echo $this->createUrl('attention/index', array('date' => 'today'));
?>
" class="btn <?php 
$date = Env::getRequest('date');
if ($date == 'today') {
    ?>
active<?php 
}
?>
"><?php 
echo $lang['Today'];
?>
</a>                      
					</div>
					<div class="btn-group pull-right">
                        <a href="<?php 
echo $this->createUrl('attention/index', array('date' => $prevAndNextDate['prev']));
?>
" class="btn">
Beispiel #3
0
?>
</label>
    <div class="controls">
    <input type="checkbox" name="ftp[pasv]" value="1" data-toggle="switch" class="visi-hidden" />
    </div>
    </div>
    </form>
</script>
<script type="text/javascript">
    var _ib = _ib || [];
    _ib.push(['authkey', '<?php 
echo Ibos::app()->setting->get('config/security/authkey');
?>
']);
    _ib.push(['ip', '<?php 
echo Env::getClientIp();
?>
']);
    _ib.push(['from', '<?php 
echo $from;
?>
']);
    _ib.push(['to', '<?php 
echo $to;
?>
']);
    _ib.push(['fullname', '<?php 
echo Ibos::app()->setting->get('setting/unit/fullname');
?>
']);
    _ib.push(['type', 'upgrade']);
Beispiel #4
0
echo $user['deptname'];
?>
</span>
					
				</div>
			</div>
		</div>
		<div class="page-list">
			<div class="page-list-header">
                <form action="<?php 
echo $this->createUrl('share/index', array('op' => 'personal', 'param' => 'search', 'uid' => $user['uid']));
?>
" method="post">
                    <div class="search search-config pull-right span3">
                        <input type="text" name="keyword" placeholder="Search" id="mn_search" nofocus value="<?php 
if (Env::getRequest('param') == 'search') {
    echo Main::getCookie('keyword');
}
?>
">
                        <a href="javascript:;">search</a>
                        <input type="hidden" name="type" value="normal_search">
                    </div>
                </form>
            </div>
			<div class="page-list-mainer">
				<?php 
if (count($data) > 0) {
    ?>
					<ul class="da-list" id="da_list">
						<?php 
Beispiel #5
0
?>
                </a>
                <div class="rp-cycle">
                    <div class="rp-cycle-header">
                        <a href="javascript:;" class="o-setup pull-right" id="rp_type_setup"></a>
                        <strong><?php 
echo $lang['Report type'];
?>
</strong>
                    </div>
                    <ul class="aside-list" id="rp_type_aside_list">
                        <?php 
foreach ($reportTypes as $reportType) {
    ?>
                            <?php 
    $typeid = Env::getRequest('typeid');
    ?>
                            <li <?php 
    if ($reportType['typeid'] == $typeid) {
        ?>
class="active"<?php 
    }
    ?>
 data-id="<?php 
    echo $reportType['typeid'];
    ?>
">
                                <a href="<?php 
    echo $this->createUrl('default/index', array('typeid' => $reportType['typeid']));
    ?>
">
Beispiel #6
0
                    </div>
                <?php 
} else {
    ?>
                    <div class="no-data-tip"></div>
                <?php 
}
?>
            </div>
        </div>
    </div>
</div>
<script>
    Ibos.app.setPageParam({
        "deptid": "<?php 
echo intval(Env::getRequest('deptid'));
?>
"
    });
<?php 
if (Cloud::getInstance()->isOpen()) {
    ?>
       $('#cl_rolling_sidebar').delegate("#call_land",'click', function() {
            var phone = $('#care_mobile').html();
            if (phone !== '' && U.regex(phone, 'mobile')) {
                var info = Ibos.app.g("formatdata"),
                    param = {data: info};
                var url = Ibos.app.url('main/call/unidirec', param);
            Ui.openFrame(url, {width: '580px', height: '523px', title: false, skin: 'call-dialog'});
            } else {
                Ui.tip('手机号码格式错误', 'error')
Beispiel #7
0
						<div class="stand">
							<i class="o-comment"></i> <?php 
echo $lang['Need receipt'];
?>
							<div class="pull-right">
								<input type="checkbox" name="emailbody[isneedreceipt]" value="1" data-toggle="switch" />
							</div>
						</div>
					</div>
					<?php 
if ($isInstallThread) {
    ?>
						<div class="span4">
							<select name="threadid"  id="thread_select">
								<?php 
    $threadId = intval(Env::getRequest('threadid'));
    ?>
								<option value="0"><?php 
    echo $lang['Not associated'];
    ?>
</option>
								<?php 
    foreach ($threadList as $thread) {
        ?>
									<option value="<?php 
        echo $thread['threadid'];
        ?>
" <?php 
        if ($thread['threadid'] == $threadId) {
            ?>
selected<?php 
Beispiel #8
0
            ?>
 data-uid="<?php 
            echo $user['uid'];
            ?>
"><?php 
            if ($user['hasSub']) {
                ?>
<i class="caret"></i><?php 
            }
            ?>
</span>
		                                        <a href="<?php 
            echo $this->createUrl('review/index', array('op' => 'personal', 'uid' => $user['uid'], 'typeid' => $typeid));
            ?>
" <?php 
            if (Env::getRequest('uid') == $user['uid']) {
                ?>
style="color:#3497DB;"<?php 
            }
            ?>
>
		                                            <img src="static.php?type=avatar&uid=<?php 
            echo $user['uid'];
            ?>
&size=middle&engine=<?php 
            echo ENGINE;
            ?>
" alt="">
													<?php 
            echo $user['realname'];
            ?>
Beispiel #9
0
/css/report.css?<?php 
echo VERHASH;
?>
">
<link rel="stylesheet" href="<?php 
echo $statAssetUrl;
?>
/css/statistics.css?<?php 
echo VERHASH;
?>
">
<div class="mc clearfix">
    <!-- Sidebar -->
    <?php 
$getUid = Env::getRequest('uid');
$getUser = Env::getRequest('user');
?>
    <?php 
echo $this->getSidebar();
?>
    <div class="mcr">
        <?php 
if ($type == 'personal') {
    ?>
            <div class="mc-header">
                <div class="mc-header-info clearfix">
                    <div class="usi-terse">
                        <a href="<?php 
    echo Ibos::app()->user->space_url;
    ?>
" class="avatar-box">
Beispiel #10
0
    ?>
                        <span class="badge pull-right"><?php 
    echo $noSignCount;
    ?>
</span>
                    <?php 
}
?>
                    <i class="o-art-unsign-m"></i>
                    <?php 
echo Ibos::lang('No sign');
?>
                </a>
            </li>
            <li <?php 
if (Env::getRequest('space') != 'top') {
    ?>
class="active"<?php 
}
?>
>
                <a href="<?php 
echo $this->createUrl('officialdoc/index');
?>
">
                    <i class="o-art-doc"></i>
                    <?php 
echo Ibos::lang('Officialdoc');
?>
                </a>
                <ul id="tree" class="ztree">
Beispiel #11
0
        <?php 
}
?>
    </div>
</div>
<script src='<?php 
echo $assetUrl;
?>
/js/lang/zh-cn.js?<?php 
echo VERHASH;
?>
'></script>
<script>
    (function () {
        var threadId = '<?php 
echo intval(Env::getRequest('threadid'));
?>
';
        $("[data-toggle='tooltip']").tooltip();
        Ibos.events.add({
            'new': function (param, $elem) {
                var flowId = $elem.data('id'),
                    text = $elem.data('text'),
                    url = Ibos.app.url('workflow/new/add', {flowid: flowId,threadid:threadId}),
                        dialogOpt = {
                            id: 'd_start_work',
                            title: text,
                            width: '400px',
                            ok: function () {
                                if (newFlowSubmitCheck()) {
                                    $('#new_form').waiting(U.lang('IN_SUBMIT'), "mini");
Beispiel #12
0
                <div id="submit_bar" class="fill clearfix">
                    <div class="pull-right">
                        <button type="submit" class="btn btn-large btn-submit btn-primary" id="save_resume"><?php 
echo $lang['Save'];
?>
</button>
                    </div>
                </div>
            </form>	
        </div>
    </div>
</div>
<script>
    Ibos.app.setPageParam({
        RSM_ADD_OP : "<?php 
echo Env::getRequest('op');
?>
",
        RSM_ADD_IMPINFO: '<?php 
echo addslashes(isset($importInfo) ? $importInfo : "");
?>
',
        // 各字段验证规则
        "resumeFieldRule": '<?php 
echo $dashboardConfigToJson;
?>
',
        // 各验证规则详情
        "resumeFieldRuleRegex": '<?php 
echo $regulars;
?>
Beispiel #13
0
require_once $yii;
require_once '../../login.php';
Yii::setPathOfAlias('application', PATH_ROOT . DIRECTORY_SEPARATOR . 'system');
Yii::createApplication('application\\core\\components\\Application', $mainConfig);
$signature = Env::getRequest('signature');
$aeskey = Setting::model()->fetchSettingValueByKey('aeskey');
$userId = Env::getRequest('userid');
if (strcmp($signature, md5($aeskey . $userId)) != 0) {
    Env::iExit("签名错误");
}
if (!empty($userId)) {
    $uid = UserBinding::model()->fetchUidByValue($userId, 'wxqy');
    if ($uid) {
        dologin($uid);
        if (!Ibos::app()->user->isGuest) {
            $redirect = Env::getRequest('redirect');
            $url = base64_decode($redirect);
            $parse = parse_url($url);
            if (isset($parse['scheme'])) {
                header('Location:' . $url, true);
                exit;
            } else {
                header('Location:../../../' . $url, true);
                exit;
            }
        }
        Env::iExit(Ibos::app()->user->isGuest ? 'fail' : 'success');
    }
}
Env::iExit('用户验证失败,尝试以下步骤的操作:<br/>' . '1、在“微信企业号->通讯录”,找到并删除该用户<br/>' . '2、在“IBOS后台->微信->部门及用户同步”,同步该用户<br/>' . '3、邀请该用户关注企业号<br/>' . '如果还存在此提示,请将问题反馈给我们的工作人员');
Beispiel #14
0
$curDate = Env::getRequest('date');
if ($curDate == 'yesterday' || !isset($curDate)) {
    ?>
active<?php 
}
?>
"><?php 
echo $lang['Yesterday'];
?>
</a>
					<a href="<?php 
echo $this->createUrl('review/index', array('date' => 'today'));
?>
" class="btn 
						<?php 
if (Env::getRequest('date') == 'today') {
    ?>
active<?php 
}
?>
"><?php 
echo $lang['Today'];
?>
</a>
					
				</div>
				<div class="btn-group pull-right">
					<a href="<?php 
echo $this->createUrl('review/index', array('date' => $prevAndNextDate['prev'], 'uid' => $subUids));
?>
" class="btn">
Beispiel #15
0
" id="edit_corporation"></i>
									</a>
								</li>
							</ul>
						</div>
						<ul id="utree" class="ztree org-utree">
						</ul>
					</div>
				</div>
				<div class="mcr">
					<div class="page-list">
						<div class="page-list-header">
							<div class="pull-left">
								<div class="btn-group">
									<button type="button" onclick="location.href = '<?php 
echo $this->createUrl('user/add') . "&deptid=" . Env::getRequest('deptid');
?>
';" class="btn btn-primary"><?php 
echo $lang['Add user'];
?>
</button>
								</div>
								<div class="btn-group mlm">
									<button type="button" data-action="batchImport" class="btn btn-primary">批量导入</button>
								</div>
								<div class="btn-group mlm">
									<button type="button" data-action="checkRelationship" class="btn">查看上下级关系</button>
								</div>
								<div class="btn-group mlm">
									<button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><?php 
echo $lang['More operation'];
Beispiel #16
0
<!-- Mainer -->
<div class="wrap">
    <div class="mc clearfix">
        <!-- Sidebar -->
        <?php 
echo $sidebar;
?>
        <!-- Sidebar end -->

        <!-- Mainer right -->
        <div class="mcr">
            <!-- Mainer nav -->
            <div class="mc-header">
                <ul class="mnv nl clearfix">
                    <?php 
$type = Env::getRequest('type');
?>
                    <li <?php 
if ($type == 'arrange') {
    ?>
class="active"<?php 
}
?>
>
                        <a href="<?php 
echo $this->createUrl('resume/index', array('type' => 'arrange'));
?>
">
                            <i class="o-rsm-arrange"></i>
                            <?php 
echo $lang['To be arranged'];
Beispiel #17
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>");
    }
}
Beispiel #18
0
// 接收信息处理
$result = trim(file_get_contents("php://input"), " \t\n\r");
// 解析
if (!empty($result)) {
    $msg = json_decode($result, true);
    if (!empty($msg)) {
        $uid = UserBinding::model()->fetchUidByValue($msg['properties']['userId'], 'wxqy');
        if ($uid) {
            dologin($uid);
            $factory = new Factory();
            $res = $factory->createHandle($msg['class'], $msg['properties'])->handle();
        } else {
            $res = resByText($userId, $corpId, $newTime, '您的账号尚未绑定,无法进行任何操作');
        }
        Env::iExit($res);
    } else {
        Env::iExit('');
    }
}
/**
 * 以文本格式回复
 * @param string $userId
 * @param string $corpId
 * @param integer $newTime
 * @param string $text
 * @return string
 */
function resByText($userId, $corpId, $newTime, $text = '')
{
    return "<xml>\r\n\t   <ToUserName><![CDATA[{$userId}]]></ToUserName>\r\n\t   <FromUserName><![CDATA[{$corpId}]]></FromUserName> \r\n\t   <CreateTime>{$newTime}</CreateTime>\r\n\t   <MsgType><![CDATA[text]]></MsgType>\r\n\t   <Content><![CDATA[{$text}]]></Content>\r\n\t</xml>";
}
Beispiel #19
0
						<span class="dib"><?php 
echo $lang['Selected modules'];
?>
</span>
						<select class="span2 at-moduel-select" id="module_select">
							<?php 
foreach ($modulesList as $module) {
    ?>
							<option data-module="<?php 
    echo $module['module'];
    ?>
" value="<?php 
    echo $this->createUrl('permissions/setup', array('module' => $module['module']));
    ?>
" <?php 
    if ($module['module'] == Env::getRequest('module')) {
        ?>
selected<?php 
    }
    ?>
><?php 
    echo $module['name'];
    ?>
</option>
							<?php 
}
?>
						</select>
					</div>
					<div>
						<table class="table table-striped" id="limit_table">
Beispiel #20
0
                </a>
                <div class="aside-sub">
                    <ul class="da-share-user-list">
                        <?php 
foreach ($data as $diary) {
    ?>
                        <li>
                            <img src="<?php 
    echo $diary['user']['avatar_middle'];
    ?>
" alt="">
                            <a href="<?php 
    echo $this->createUrl('share/index', array('op' => 'personal', 'uid' => $diary['uid']));
    ?>
" <?php 
    if (Env::getRequest('uid') == $diary['uid']) {
        ?>
style="color:#3497DB;"<?php 
    }
    ?>
><?php 
    echo $diary['user']['realname'];
    ?>
</a>
                            <span><?php 
    echo $diary['diarytime'];
    ?>
</span>
                        </li>
                        <?php 
}
Beispiel #21
0
</a>
								</td>
							</tr>
							<?php 
$str = "\r\n\t\t\t\t\t\t<tr data-id='\$deptid' data-pid='\$pid'>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \$spacer<a href='" . $this->createUrl("default/index&op={$op}&deptid=") . "\$deptid' class='org-dep-name'><i class='os-department'></i>\$deptname</a>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>";
$categorys = String::getTree($dept, $str);
echo $categorys;
?>
						</tbody>
					</table>
				</div>
			</li>
		</ul>
	</div>
</div>
<script>
	$(function() {
		var deptid = "<?php 
echo Env::getRequest('deptid');
?>
",
			controller = "<?php 
echo $this->id;
?>
";
		if (!deptid && controller == "default"){
			deptid = 0;
		}
		$('tr[data-id="' + deptid + '"]').addClass("dep-active");
	});
</script>
Beispiel #22
0
				</li>
			</ul>
		</div>
		<div class="page-list">
			<div class="page-list-header">
				<div class="btn-toolbar pull-left">		
					<button class="btn btn-primary pull-left" data-action="verifyArticle">审核通过</button>
					<button class="btn pull-left" data-action="backArticle">退回</button>
				</div>
                <form action="<?php 
echo $this->createUrl('default/index', array('param' => 'search'));
?>
" method="post">
                    <div class="search search-config pull-right span3">
                        <input type="text" placeholder="输入标题查询" name="keyword"  id="mn_search" nofocus <?php 
if (Env::getRequest('param')) {
    ?>
value="<?php 
    echo Main::getCookie('keyword');
    ?>
"<?php 
}
?>
>
                        <a href="javascript:;">search</a>
                        <input type="hidden" name="type" value="normal_search">
                    </div>
                </form>
			</div>
			<div class="page-list-mainer art-list">
                <?php 
Beispiel #23
0
	</div>
	<div class="span3">
		<div class="datepicker input-group" id="end_time">
			<span class="input-group-addon">至</span>
			<a href="javascript:;" class="datepicker-btn"></a>
			<input type="text" value="<?php 
echo date('Y-m-d', $time['end']);
?>
" class="datepicker-input" id="range_end">
		</div>
	</div>
</div>
<script>
	Ibos.app.setPageParam({
		curUid: '<?php 
echo Env::getRequest('uid');
?>
'
	});
</script>
<script type="text/javascript">

	//时间类型选择点击效果
	$("#time_type_select li").on("click", function() {
		$(this).addClass("active").siblings().removeClass("active");
	});

	//初始化时间范围选择
	$("#start_time").datepicker({ target: $("#end_time") });
	//选择开始时间操作,发送开始时间和结束时间到后台
	//选择结束时间操作,发送开始时间和结束时间到后台