本文整理汇总了PHP中getSideBodyClass函数的典型用法代码示例。如果您正苦于以下问题:PHP getSideBodyClass函数的具体用法?PHP getSideBodyClass怎么用?PHP getSideBodyClass使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getSideBodyClass函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: eT
eT("Download marked files");
?>
' ;
var sDownLoadAll='<?php
eT("Download all files");
?>
' ;
var sConfirmationArchiveMessage='<?php
eT("This function creates a ZIP archive of several survey archives and can take some time - please be patient! Do you want to continue?", 'js');
?>
';
<?php
}
?>
</script>
<div class='side-body <?php
echo getSideBodyClass(true);
?>
'>
<h3><?php
eT('Survey responses');
?>
</h3>
<div class="row">
<div id="displayResponsesContainer" class="content-right" style="overflow-x: scroll; padding-bottom: 2em">
<table id="displayresponses"></table> <div id="pager" style="position: relative;"></div>
</div>
</div>
</div>
开发者ID:sickpig,项目名称:LimeSurvey,代码行数:30,代码来源:listResponses_view.php
示例2: getSideBodyClass
<div class="side-body <?php
echo getSideBodyClass(false);
?>
">
<?php
if ($tableExists) {
?>
<h3><?php
eT("Import a VV survey file");
?>
</h3>
<?php
}
?>
<div class="row">
<div class="col-lg-12 content-right">
<?php
if ($tableExists) {
?>
<?php
echo CHtml::form(array('admin/dataentry/sa/vvimport/surveyid/' . $surveyid), 'post', array('enctype' => 'multipart/form-data', 'id' => 'vvexport', 'class' => 'form-horizontal'));
?>
<div class="panel panel-primary" id="pannel-1" style="opacity: 1; top: 0px;">
<div class="panel-heading">
<h4 class="panel-title">
<?php
eT("General");
?>
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:31,代码来源:vvimport.php
示例3: surveyright
/**
* surveypermission::surveyright()
* Function responsible to process setting of permission of a user/usergroup.
* @param mixed $surveyid
* @return void
*/
function surveyright($surveyid)
{
$aData['surveyid'] = $surveyid = sanitize_int($surveyid);
$aViewUrls = array();
$action = $_POST['action'];
$imageurl = Yii::app()->getConfig('imageurl');
$postuserid = !empty($_POST['uid']) ? $_POST['uid'] : false;
$postusergroupid = !empty($_POST['ugid']) ? $_POST['ugid'] : false;
if ($postuserid && !in_array($postuserid, getUserList('onlyuidarray'))) {
$this->getController()->error('Access denied');
} elseif ($postusergroupid && !in_array($postusergroupid, getUserGroupList(null, 'simplegidarray'))) {
$this->getController()->error('Access denied');
}
if ($action == "surveyrights" && Permission::model()->hasSurveyPermission($surveyid, 'surveysecurity', 'update')) {
$addsummary = "<div id='edit-permission' class='side-body " . getSideBodyClass(false) . "'>";
$addsummary .= '<div class="row"><div class="col-lg-12 content-right">';
$addsummary .= "<div class=\"jumbotron message-box\">\n";
$addsummary .= "<h2>" . gT("Edit survey permissions") . "</h2>\n";
$where = ' ';
if ($postuserid) {
if (!Permission::model()->hasGlobalPermission('superadmin', 'read')) {
$where .= "sid = :surveyid AND owner_id != :postuserid AND owner_id = :owner_id";
$resrow = Survey::model()->find($where, array(':surveyid' => $surveyid, ':owner_id' => Yii::app()->session['loginID'], ':postuserid' => $postuserid));
}
} else {
$where .= "sid = :sid";
$resrow = Survey::model()->find($where, array(':sid' => $surveyid));
$iOwnerID = $resrow['owner_id'];
}
$aBaseSurveyPermissions = Permission::model()->getSurveyBasePermissions();
$aPermissions = array();
foreach ($aBaseSurveyPermissions as $sPermissionKey => $aCRUDPermissions) {
foreach ($aCRUDPermissions as $sCRUDKey => $CRUDValue) {
if (!in_array($sCRUDKey, array('create', 'read', 'update', 'delete', 'import', 'export'))) {
continue;
}
if ($CRUDValue) {
if (isset($_POST["perm_{$sPermissionKey}_{$sCRUDKey}"])) {
$aPermissions[$sPermissionKey][$sCRUDKey] = 1;
} else {
$aPermissions[$sPermissionKey][$sCRUDKey] = 0;
}
}
}
}
if (isset($postusergroupid) && $postusergroupid > 0) {
$oResult = UserInGroup::model()->findAll('ugid = :ugid AND uid <> :uid AND uid <> :iOwnerID', array(':ugid' => $postusergroupid, ':uid' => Yii::app()->session['loginID'], ':iOwnerID' => $iOwnerID));
if (count($oResult) > 0) {
foreach ($oResult as $aRow) {
Permission::model()->setPermissions($aRow->uid, $surveyid, 'survey', $aPermissions);
}
$addsummary .= "<div class=\"successheader\">" . gT("Survey permissions for all users in this group were successfully updated.") . "</div>\n";
}
} else {
if (Permission::model()->setPermissions($postuserid, $surveyid, 'survey', $aPermissions)) {
Yii::app()->setFlashMessage(gT("Survey permissions were successfully updated."));
} else {
Yii::app()->setFlashMessage(gT("Failed to update survey permissions!"));
}
if (App()->getRequest()->getPost('close-after-save') == 'false') {
Yii::app()->request->redirect(Yii::app()->getController()->createUrl('admin/surveypermission/sa/set', array('action' => 'setsurveysecurity', 'surveyid' => $surveyid, 'uid' => $postuserid)));
}
Yii::app()->request->redirect(Yii::app()->getController()->createUrl('admin/surveypermission/sa/view', array('surveyid' => $surveyid)));
}
$addsummary .= "<br/><input class='btn btn-default' type=\"submit\" onclick=\"window.open('" . $this->getController()->createUrl('admin/surveypermission/sa/view/surveyid/' . $surveyid) . "', '_top')\" value=\"" . gT("Continue") . "\"/>\n";
$addsummary .= "</div></div></div>\n";
$aViewUrls['output'] = $addsummary;
} else {
$this->getController()->error('Access denied');
}
$aData['sidemenu']['state'] = false;
$surveyinfo = Survey::model()->findByPk($surveyid)->surveyinfo;
$aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $surveyid . ")";
$this->_renderWrappedTemplate('authentication', $aViewUrls, $aData);
}
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:81,代码来源:surveypermission.php
示例4: getSideBodyClass
<div class='side-body <?php
echo getSideBodyClass($sideMenuOpen);
?>
'>
<?php
echo $content;
?>
</div>
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:8,代码来源:sidebody.php
示例5: _showAssessments
private function _showAssessments($iSurveyID, $action)
{
$oCriteria = new CDbCriteria(array('order' => 'id ASC'));
$oAssessments = Assessment::model()->findAllByAttributes(array('sid' => $iSurveyID), $oCriteria);
$aData = $this->_collectGroupData($iSurveyID);
$aHeadings = array(gT("Scope"), gT("Question group"), gT("Minimum"), gT("Maximum"));
$aData['actiontitle'] = gT("Add");
$aData['actionvalue'] = "assessmentadd";
$aData['editId'] = '';
if ($action == "assessmentedit" && Permission::model()->hasSurveyPermission($iSurveyID, 'assessments', 'update')) {
$aData = $this->_collectEditData($aData);
}
$oSurvey = Survey::model()->findByPk($iSurveyID);
$surveyinfo = getSurveyInfo($iSurveyID);
$aData['surveyinfo'] = $surveyinfo;
$aData['imageurl'] = Yii::app()->getConfig('adminimageurl');
$aData['surveyid'] = $iSurveyID;
$aData['headings'] = $aHeadings;
$aData['assessments'] = $oAssessments;
$aData['assessmentlangs'] = Yii::app()->getConfig("assessmentlangs");
$aData['baselang'] = $surveyinfo['language'];
$aData['action'] = $action;
$aData['gid'] = empty($_POST['gid']) ? '' : sanitize_int($_POST['gid']);
Yii::app()->loadHelper('admin/htmleditor');
$urls['output'] = '<div class="side-body ' . getSideBodyClass(false) . '">';
$urls['output'] .= App()->getController()->renderPartial('/admin/survey/breadcrumb', array('oSurvey' => $oSurvey, 'active' => gT("Assessments")), true, false);
$urls['output'] .= '<h3>' . gT("Assessments") . '</h3>';
if ($surveyinfo['assessments'] != 'Y') {
$urls['message'] = array('title' => gT("Assessments mode not activated"), 'message' => sprintf(gT("Assessment mode for this survey is not activated. You can activate it in the %s survey settings %s (tab 'Notification & data management')."), '<a href="' . $this->getController()->createUrl('admin/survey/sa/editlocalsettings/surveyid/' . $iSurveyID) . '">', '</a>'), 'class' => 'warningheader');
}
$urls['assessments_view'][] = $aData;
$this->_renderWrappedTemplate('', $urls, $aData);
}
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:33,代码来源:assessments.php
注:本文中的getSideBodyClass函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论