Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev Added database update code.
- Loading branch information
Showing
9 changed files
with
245 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
<?php | ||
/* @var $cs CClientScript */ | ||
$cs=Yii::app()->getClientScript(); | ||
$cs->registerCoreScript('jquery'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('third_party') . 'jqueryui/js/jquery-ui-1.10.0.custom.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.ui.touch-punch.min.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.qtip.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.notify.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'admin_core.js'); | ||
$cs->registerScript('LimeScript', $this->widget('ext.LimeScript.LimeScript', array(), true), CClientScript::POS_HEAD); | ||
?> | ||
|
||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('third_party');?>jqueryui/css/smoothness/jquery-ui-1.10.0.custom.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>/jquery-ui/jquery-ui.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>printablestyle.css" media="print" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>adminstyle.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('styleurl');?>adminstyle.css" /> | ||
<?php | ||
if(!empty($css_admin_includes)) { | ||
foreach ($css_admin_includes as $cssinclude) | ||
{ | ||
?> | ||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $cssinclude; ?>" /> | ||
<?php | ||
} | ||
} | ||
/*if ($bIsRTL){?> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>adminstyle-rtl.css" /><?php | ||
}*/ | ||
?> | ||
<link rel="shortcut icon" href="<?php echo App()->baseUrl; ?>styles/favicon.ico" type="image/x-icon" /> | ||
<link rel="icon" href="<?php echo App()->baseUrl; ?>styles/favicon.ico" type="image/x-icon" /> | ||
<?php //echo $firebug ?> | ||
|
||
|
||
<title>Limesurvey Administration</title> | ||
|
||
</head> | ||
<body> | ||
<?php $this->widget('ext.FlashMessage.FlashMessage'); ?> | ||
<?php $this->widget('ext.Menu.MenuWidget', $this->navData); ?> | ||
<div id="content"> | ||
<?php echo $content; ?> | ||
</div> | ||
<div id="ajaxprogress" title="Ajax request in progress" style="text-align: center"> | ||
<img src="<?php echo Yii::app()->getConfig('adminstyleurl');?>/images/ajax-loader.gif"/> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
<?php | ||
|
||
/* @var $cs CClientScript */ | ||
$cs=Yii::app()->getClientScript(); | ||
$cs->registerCoreScript('jquery'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('third_party') . 'jqueryui/js/jquery-ui-1.10.0.custom.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.ui.touch-punch.min.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.qtip.js'); | ||
$cs->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.notify.js'); | ||
$cs->registerScriptFile(Yii::app()->createUrl('config/script')); | ||
$cs->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'admin_core.js'); | ||
?> | ||
|
||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('third_party');?>jqueryui/css/smoothness/jquery-ui-1.10.0.custom.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>/jquery-ui/jquery-ui.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>printablestyle.css" media="print" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>adminstyle.css" /> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('styleurl');?>adminstyle.css" /> | ||
<?php | ||
if(!empty($css_admin_includes)) { | ||
foreach ($css_admin_includes as $cssinclude) | ||
{ | ||
?> | ||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $cssinclude; ?>" /> | ||
<?php | ||
} | ||
} | ||
/*if ($bIsRTL){?> | ||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getConfig('adminstyleurl');?>adminstyle-rtl.css" /><?php | ||
}*/ | ||
?> | ||
<link rel="shortcut icon" href="<?php echo App()->baseUrl; ?>styles/favicon.ico" type="image/x-icon" /> | ||
<link rel="icon" href="<?php echo App()->baseUrl; ?>styles/favicon.ico" type="image/x-icon" /> | ||
|
||
|
||
<title>Limesurvey</title> | ||
</head> | ||
<body> | ||
<?php $this->widget('ext.FlashMessage.FlashMessage'); ?> | ||
<div id="content"> | ||
<?php echo $content; ?> | ||
</div> | ||
<div id="ajaxprogress" title="Ajax request in progress" style="text-align: center"> | ||
<img src="<?php echo Yii::app()->getConfig('adminstyleurl');?>/images/ajax-loader.gif"/> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
App()->getClientScript()->registerCssFile('/styles/configure.css'); | ||
|
||
?> | ||
<div id="plugin-<?php echo isset($plugin['name']) ? $plugin['name'] : ''; ?>"> | ||
|
||
|
||
<div class="pluginsettings"> | ||
<?php | ||
if (isset($plugin['name'])) | ||
{ | ||
echo CHtml::tag('h1', array(), "Settings for plugin {$plugin['name']}"); | ||
} | ||
|
||
Yii::import("application.helpers.PluginSettingsHelper"); | ||
$PluginSettings = new PluginSettingsHelper(); | ||
|
||
echo CHtml::beginForm('', 'post', array('id' => "pluginsettings-{$plugin['name']}")); | ||
echo CHtml::openTag('ol'); | ||
foreach ($settings as $name => $setting) | ||
{ | ||
echo CHtml::tag('li', array(), $PluginSettings->renderSetting($name, $setting, "pluginsettings-{$plugin['name']}", true)); | ||
|
||
} | ||
echo CHtml::closeTag('ol'); | ||
echo CHtml::submitButton('Save plugin settings'); | ||
echo CHtml::endForm(); | ||
|
||
?> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div style="width: 50%; margin: auto;"> | ||
<?php | ||
/* @var $this ConfigController */ | ||
/* @var $dataProvider CActiveDataProvider */ | ||
$dataProvider = new CArrayDataProvider($data); | ||
$gridColumns = array( | ||
array(// display the 'name' attribute | ||
'class' => 'CLinkColumn', | ||
'header' => 'Plugin', | ||
'labelExpression' => function($data) { return $data['name']; }, | ||
'urlExpression' => function($data) { return array("/plugins/configure", "id" => $data['id']); } | ||
), | ||
array(// display the activation link | ||
'class' => 'CLinkColumn', | ||
'header' => 'Activation status', | ||
'labelExpression' => function($data) { return ($data['active'] == 0 ? 'activate' : 'deactivate'); }, | ||
'urlExpression' => function($data) { return $data['active'] == 0 ? array("/plugins/activate", "id" => $data['id']) : array("/plugins/activate", "id" => $data['id']); } | ||
) | ||
); | ||
/* | ||
array( // display a column with "view", "update" and "delete" buttons | ||
'class' => 'CallbackColumn', | ||
'label' => function($data) { return ($data->active == 1) ? "deactivate": "activate"; }, | ||
'url' => function($data) { return array("/plugins/activate", "id"=>$data["id"]); } | ||
) | ||
); | ||
*/ | ||
$this->widget('application.extensions.GridViewWidget', array( | ||
'dataProvider'=>$dataProvider, | ||
'columns'=>$gridColumns, | ||
'rowCssClassExpression'=> function ($data, $row) { return ($row % 2 ? 'even' : 'odd') . ' ' . ($data['new']==1 ? "new" : "old"); }, | ||
)); | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters