code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
<?php
/* @var $this SuratMasukController */
/* @var $model SuratMasuk */
/* @var $form CActiveForm */
?>
<?php $this->beginWidget('ext.widgets.XPanel', array('title' => 'Surat Masuks', 'width' => 900,'height' => 500));
?>
<div class="form">
<?php $form=$this->beginWidget('ext.CAxActiveForm', array(
'id'=>'surat-masu... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/suratMasuk/_form.php | PHP | asf20 | 2,606 |
<?php
/* @var $this SuratMasukController */
/* @var $data SuratMasuk */
?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('id_surat_masuk')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->id_surat_masuk), array('view', 'id'=>$data->id_surat_masuk)); ?>
<br />
<b><?php echo CHtml::e... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/suratMasuk/_view.php | PHP | asf20 | 1,303 |
<?php
/* @var $this TestController */
/* @var $model Test */
$this->breadcrumbs=array(
'Tests'=>array('index'),
$model->id,
);
$this->menu=array(
array('label'=>'List Test', 'url'=>array('index')),
array('label'=>'Create Test', 'url'=>array('create')),
array('label'=>'Update Test', 'url'=>array('update', 'id'=>$... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/view.php | PHP | asf20 | 740 |
<?php
/* @var $this TestController */
/* @var $model Test */
$this->breadcrumbs=array(
'Test'=>array('index'),
'Create',
);
?>
<?php echo $this->renderPartial('_form', array('model'=>$model,'title' => 'Create Test')); ?> | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/create.php | PHP | asf20 | 224 |
<?php
/* @var $this TestController */
/* @var $model Test */
$this->breadcrumbs=array(
'Test'=>array('index'),
$model->id=>array('view','id'=>$model->id),
'Update',
);
?>
<?php echo $this->renderPartial('_form', array('model'=>$model, 'title' => 'Update Test')); ?> | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/update.php | PHP | asf20 | 270 |
<?php
/* @var $this TestController */
/* @var $model Test */
$this->breadcrumbs=array(
'Test'
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').toggle();
return false;
});
$('.search-form form').submit(function(){
$.fn.yiiGridView.update('test-grid', ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/index.php | PHP | asf20 | 827 |
<?php
/* @var $this TestController */
/* @var $model Test */
/* @var $form CActiveForm */
?>
<?php $this->beginWidget('ext.widgets.XPanel', array('width'=>900, 'height'=>130, 'title'=> 'Pegawai')); ?>
<?php $form=$this->beginWidget('CActiveForm', array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/_search.php | PHP | asf20 | 1,186 |
<?php
/* @var $this TestController */
/* @var $model Test */
$this->breadcrumbs=array(
'Tests'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List Test', 'url'=>array('index')),
array('label'=>'Create Test', 'url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.se... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/admin.php | PHP | asf20 | 1,257 |
<?php
/* @var $this TestController */
/* @var $model Test */
/* @var $form CActiveForm */
?>
<?php $this->beginWidget('ext.widgets.XPanel', array('title' => 'Tests', 'width' => 900,'height' => 500));
?>
<div class="form">
<?php $form=$this->beginWidget('ext.CAxActiveForm', array(
'id'=>'test-form',
'enableAjaxValid... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/_form.php | PHP | asf20 | 1,259 |
<?php
/* @var $this TestController */
/* @var $data Test */
?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('nama')); ?>:</b>... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/views/test/_view.php | PHP | asf20 | 504 |
<?php $this->widget('zii.widgets.CMenu', array(
'firstItemCssClass'=>'first',
'lastItemCssClass'=>'last',
'htmlOptions'=>array('class'=>'actions'),
'items'=>array(
array(
'label'=>Rights::t('core', 'Assignments'),
'url'=>array('assignment/view'),
'itemOptions'=>array('class'=>'item-assignments'),... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/_menu.php | PHP | asf20 | 939 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Create :type', array(':type'=>Rights::getAuthItemTypeName($_GET['type']))),
); ?>
<div class="createAuthItem">
<h2><?php echo Rights::t('core', 'Create :type', array(
':type'=>Rights::getAuthItemTypeName($_GET['type']),
)); ?><... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/create.php | PHP | asf20 | 402 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Generate items'),
); ?>
<div id="generator">
<h2><?php echo Rights::t('core', 'Generate items'); ?></h2>
<p><?php echo Rights::t('core', 'Please select which items you wish to generate.'); ?></p>
<div class="form">
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/generate.php | PHP | asf20 | 1,639 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::getAuthItemTypeNamePlural($model->type)=>Rights::getAuthItemRoute($model->type),
$model->name,
); ?>
<div id="updatedAuthItem">
<h2><?php echo Rights::t('core', 'Update :name', array(
':name'=>$model->name,
':type'=>Rights::getAuthItemT... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/update.php | PHP | asf20 | 3,409 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Roles'),
); ?>
<div id="roles">
<h2><?php echo Rights::t('core', 'Roles'); ?></h2>
<p>
<?php echo Rights::t('core', 'A role is group of permissions to perform a variety of tasks and operations, for example the authenticated us... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/roles.php | PHP | asf20 | 2,116 |
<div class="form">
<?php $form=$this->beginWidget('CActiveForm'); ?>
<div class="row">
<?php echo $form->dropDownList($model, 'itemname', $itemnameSelectOptions); ?>
<?php echo $form->error($model, 'itemname'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton(Rights::t('core', 'Add')); ?... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/_childForm.php | PHP | asf20 | 367 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Tasks'),
); ?>
<div id="tasks">
<h2><?php echo Rights::t('core', 'Tasks'); ?></h2>
<p>
<?php echo Rights::t('core', 'A task is a permission to perform multiple operations, for example accessing a group of controller action.');... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/tasks.php | PHP | asf20 | 2,106 |
<div class="form span-12 first">
<?php if( $model->scenario==='update' ): ?>
<h3><?php echo Rights::getAuthItemTypeName($model->type); ?></h3>
<?php endif; ?>
<?php $form=$this->beginWidget('CActiveForm'); ?>
<div class="row">
<?php echo $form->labelEx($model, 'name'); ?>
<?php echo $form->textField($model,... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/_form.php | PHP | asf20 | 2,001 |
<?php if( $items['controllers']!==array() ): ?>
<?php foreach( $items['controllers'] as $key=>$item ): ?>
<?php if( isset($item['actions'])===true && $item['actions']!==array() ): ?>
<?php $controllerKey = isset($moduleName)===true ? ucfirst($moduleName).'.'.$item['name'] : $item['name']; ?>
<?php $controll... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/_generateItems.php | PHP | asf20 | 2,359 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Operations'),
); ?>
<div id="operations">
<h2><?php echo Rights::t('core', 'Operations'); ?></h2>
<p>
<?php echo Rights::t('core', 'An operation is a permission to perform a single operation, for example accessing a certain co... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/operations.php | PHP | asf20 | 2,162 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Permissions'),
); ?>
<div id="permissions">
<h2><?php echo Rights::t('core', 'Permissions'); ?></h2>
<p>
<?php echo Rights::t('core', 'Here you can view and manage the permissions assigned to each role.'); ?><br />
<?php ech... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/authItem/permissions.php | PHP | asf20 | 1,711 |
<?php $this->beginContent(Rights::module()->appLayout); ?>
<div id="rights" class="container">
<div id="content">
<?php if( $this->id!=='install' ): ?>
<div id="menu">
<?php $this->renderPartial('/_menu'); ?>
</div>
<?php endif; ?>
<?php $this->renderPartial('/_flash'); ?>
<?php echo $conten... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/layouts/main.php | PHP | asf20 | 389 |
<div class="flashes">
<?php if( Yii::app()->user->hasFlash('RightsSuccess')===true ):?>
<div class="flash success">
<?php echo Yii::app()->user->getFlash('RightsSuccess'); ?>
</div>
<?php endif; ?>
<?php if( Yii::app()->user->hasFlash('RightsError')===true ):?>
<div class="flash error... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/_flash.php | PHP | asf20 | 429 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Assignments'),
); ?>
<div id="assignments">
<h2><?php echo Rights::t('core', 'Assignments'); ?></h2>
<p>
<?php echo Rights::t('core', 'Here you can view which permissions has been assigned to each user.'); ?>
</p>
<?php $th... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/assignment/view.php | PHP | asf20 | 1,548 |
<?php $this->breadcrumbs = array(
'Rights'=>Rights::getBaseUrl(),
Rights::t('core', 'Assignments')=>array('assignment/view'),
$model->getName(),
); ?>
<div id="userAssignments">
<h2><?php echo Rights::t('core', 'Assignments for :username', array(
':username'=>$model->getName()
)); ?></h2>
<div class="assign... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/assignment/user.php | PHP | asf20 | 1,767 |
<div class="form">
<?php $form=$this->beginWidget('CActiveForm'); ?>
<div class="row">
<?php echo $form->dropDownList($model, 'itemname', $itemnameSelectOptions); ?>
<?php echo $form->error($model, 'itemname'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton(Rights::t('core', 'Assign'))... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/assignment/_form.php | PHP | asf20 | 370 |
<div id="installer" class="confirm">
<h2><?php echo Rights::t('install', 'Install Rights'); ?></h2>
<p class="red-text">
<?php echo Rights::t('install', 'Rights is already installed!'); ?>
</p>
<p><?php echo Rights::t('install', 'Please confirm if you wish to reinstall.'); ?></p>
<p>
<?php echo CHtml::link... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/install/confirm.php | PHP | asf20 | 589 |
<div id="installer" class="error">
<h2><?php echo Rights::t('install', 'Error'); ?></h2>
<p class="red-text">
<?php echo Rights::t('install', 'An error occurred while installing Rights.'); ?>
</p>
<p>
<?php echo Rights::t('install', 'Please try again or consult the documentation.') ;?>
</p>
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/install/error.php | PHP | asf20 | 326 |
<div id="installer" class="ready">
<h2><?php echo Rights::t('install', 'Congratulations!'); ?></h2>
<p class="green-text">
<?php echo Rights::t('install', 'Rights has been installed succesfully.'); ?>
</p>
<p>
<?php echo Rights::t('install', 'You can start by generating your authorization items') ;?>
<?php... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/views/install/ready.php | PHP | asf20 | 414 |
<?php
/**
* Authorization item form class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.5
*/
class AuthItemForm extends CFormModel
{
public $name;
public $description;
public $type;
public $bizRule;
public $data;
/**
* Declares the validati... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/models/AuthItemForm.php | PHP | asf20 | 2,523 |
<?php
/**
* Generation form class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.8
*/
class GenerateForm extends CFormModel
{
public $items;
/**
* Declares the validation rules.
*/
public function rules()
{
return array... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/models/GenerateForm.php | PHP | asf20 | 364 |
<?php
/**
* Auth item assignment form class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9
*/
class AssignmentForm extends CFormModel
{
public $itemname;
/**
* Declares the validation rules.
*/
public function rules()
{
return array(
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/models/AssignmentForm.php | PHP | asf20 | 520 |
<?php
/**
* Auth item child form class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9
*/
class AuthChildForm extends CFormModel
{
public $itemname;
/**
* Declares the validation rules.
*/
public function rules()
{
return array(
array... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/models/AuthChildForm.php | PHP | asf20 | 514 |
<?php
/**
* Rights web user class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.5
*/
class RWebUser extends CWebUser
{
/**
* Actions to be taken after logging in.
* Overloads the parent method in order to mark superusers.
* @param boolean $from... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RWebUser.php | PHP | asf20 | 2,945 |
<?php
/**
* Rights installer component class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.3
*/
class RInstaller extends CApplicationComponent
{
const ERROR_NONE=0;
const ERROR_QUERY_FAILED=1;
/**
* @property array the ro... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RInstaller.php | PHP | asf20 | 5,674 |
<?php
/**
* Rights user behavior class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.10
*/
class RUserBehavior extends CModelBehavior
{
/**
* @property the name of the id column.
*/
public $idColumn;
/**
* @property the name of the name col... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/behaviors/RUserBehavior.php | PHP | asf20 | 2,598 |
<?php
/**
* Rights authorization item behavior class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.11
*/
class RAuthItemBehavior extends CBehavior
{
/**
* @property integer the id of the user to whom this item is assigned.
*/
pub... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/behaviors/RAuthItemBehavior.php | PHP | asf20 | 7,482 |
<?php
/**
* Rights authorizer component class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.5
*/
class RAuthorizer extends CApplicationComponent
{
/**
* @property string the name of the superuser role.
*/
public $superuserName;
/**
* @proper... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RAuthorizer.php | PHP | asf20 | 14,869 |
<?php
/**
* Rights helper class file.
*
* Provides static functions for interaction with Rights from outside of the module.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.1
*/
class Rights
{
const PERM_NONE = 0;
const PERM_DIRECT = 1;
c... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/Rights.php | PHP | asf20 | 9,972 |
<?php
/**
* Rights generator component class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.8
*/
class RGenerator extends CApplicationComponent
{
private $_authManager;
private $_items;
/**
* @property CDbConnection
*/
publi... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RGenerator.php | PHP | asf20 | 5,234 |
<?php
/**
* Rights base controller class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.6
*/
class RController extends CController
{
/**
* @property string the default layout for the controller view. Defaults to '//layouts/column1',
*... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RController.php | PHP | asf20 | 1,920 |
<?php
/**
* Rights authorization manager class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.7
*/
class RDbAuthManager extends CDbAuthManager
{
/**
* @var string the name of the rights table.
*/
public $rightsTable = 'Rights';
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RDbAuthManager.php | PHP | asf20 | 9,807 |
<?php
/**
* Rights filter class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.7
*/
class RightsFilter extends CFilter
{
protected $_allowedActions = array();
/**
* Performs the pre-action filtering.
* @param CFilterChain $filterChain the filte... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/RightsFilter.php | PHP | asf20 | 2,214 |
<?php
class RAssignmentDataProvider extends CActiveDataProvider
{
/**
* @property RAuthorizer
*/
private $_authorizer;
/**
* Constructor.
* (e.g. <code>Post::model()</code>, <code>Post::model()->published()</code>).
* @param array $config configuration (name=>value) to be applied as the initial property ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/dataproviders/RAssignmentDataProvider.php | PHP | asf20 | 834 |
<?php
/**
* Authorization item child data provider class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.10
*/
class RAuthItemChildDataProvider extends RAuthItemDataProvider
{
/**
* Constructs the data provider.
* @param string $parent the data ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/dataproviders/RAuthItemChildDataProvider.php | PHP | asf20 | 939 |
<?php
/**
* Authorization item parent data provider class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.10
*/
class RAuthItemParentDataProvider extends RAuthItemDataProvider
{
/**
* Constructs the data provider.
* @param string $parent the dat... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/dataproviders/RAuthItemParentDataProvider.php | PHP | asf20 | 952 |
<?php
/**
* Authorization item data provider class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.10
*/
class RAuthItemDataProvider extends CDataProvider
{
public $type;
public $userId;
public $parent;
public $exclude = array();
public $items... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/dataproviders/RAuthItemDataProvider.php | PHP | asf20 | 2,224 |
<?php
/**
* Rights permission data provider class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.11
*/
class RPermissionDataProvider extends CDataProvider
{
/**
* @property boolean whether to show the parent type
* in the inherited item tooltip... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/components/dataproviders/RPermissionDataProvider.php | PHP | asf20 | 4,350 |
<?php
/**
* Rights authorization item controller class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.5
*/
class AuthItemController extends RController
{
/**
* @property RAuthorizer
*/
private $_authorizer;
/**
* @property CAuthItem the curren... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/controllers/AuthItemController.php | PHP | asf20 | 15,317 |
<?php
/**
* Rights installation controller class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.8
*/
class InstallController extends RController
{
/**
* @property RAuthorizer
*/
private $_authorizer;
/**
* @property RInstaller
*/
private $... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/controllers/InstallController.php | PHP | asf20 | 2,696 |
<?php
/**
* Rights assignment controller class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @since 0.9.1
*/
class AssignmentController extends RController
{
/**
* @property RAuthorizer
*/
private $_authorizer;
/**
* Initializes the controller.
*/
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/controllers/AssignmentController.php | PHP | asf20 | 4,390 |
<?php
/**
* Rights module class file.
*
* @author Christoffer Niska <cniska@live.com>
* @copyright Copyright © 2010 Christoffer Niska
* @version 1.3.0
*
* DO NOT CHANGE THE DEFAULT CONFIGURATION VALUES!
*
* You may overload the module configuration values in your rights-module
* configuration like so:
*
* 'mod... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/RightsModule.php | PHP | asf20 | 5,321 |
/**
* Anonymous function that is immediately called
* for making sure that we can use the $-shortcut for jQuery.
*/
(function($) {
/**
* Rights tooltip plugin.
* @param Object options Plugin options
* @return the jQuery element
*/
$.fn.rightsTooltip = function(options) {
// Default values
var defaults = {
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/assets/js/rights.js | JavaScript | asf20 | 4,967 |
/**
* Rights module core style sheet file.
*
* @author Christoffer Niska
* @copyright Copyright © 2008 Christoffer Niska
* @since 0.9.11
*/
#rights .form .text-field { width:320px; }
#rights #updateAuthItem .parents,
#rights #updateAuthItem .children { margin-bottom:30px; }
#rights .type-column { width:100px; }... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/assets/css/core.css | CSS | asf20 | 2,698 |
/**
* Rights module default style sheet file.
* You may override this style sheet by setting the 'cssFile'
* in the module's configuration.
*
* @author Christoffer Niska
* @copyright Copyright © 2008 Christoffer Niska
* @since 0.5
*/
/**
* Default style.
*/
#rights * { font-family:Trebuchet MS, Verdana, san-seri... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/modules/rights/assets/css/default.css | CSS | asf20 | 3,234 |
@echo off
rem -------------------------------------------------------------
rem Yii command line script for Windows.
rem This is the bootstrap script for running yiic on Windows.
rem -------------------------------------------------------------
@setlocal
set BIN_PATH=%~dp0
if "%PHP_COMMAND%" == "" set PHP_COMMAND... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/yiic.bat | Batchfile | asf20 | 380 |
<?php
/**
* Change the following URL based on your server configuration
* Make sure the URL ends with a slash so that we can use relative URLs in test cases
*/
define('TEST_BASE_URL','http://localhost/testdrive/index-test.php/');
/**
* The base class for functional test cases.
* In this class, we set the base UR... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/tests/WebTestCase.php | PHP | asf20 | 675 |
<?php
// change the following paths if necessary
$yiit=dirname(__FILE__).'/../../../framework/yiit.php';
$config=dirname(__FILE__).'/../config/test.php';
require_once($yiit);
require_once(dirname(__FILE__).'/WebTestCase.php');
Yii::createWebApplication($config);
| zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/tests/bootstrap.php | PHP | asf20 | 266 |
<?php
// change the following paths if necessary
$yiic=dirname(__FILE__).'/../../framework/yiic.php';
$config=dirname(__FILE__).'/config/console.php';
require_once($yiic);
| zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/yiic.php | PHP | asf20 | 174 |
<?php
/**
* This is the model class for table "mst_surat_keluar_template".
*
* The followings are the available columns in table 'mst_surat_keluar_template':
* @property string $id_surat_keluar_template
* @property string $deskripsi
* @property string $isi_surat
* @property string $judul_surat
*/
class SuratKe... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/SuratKeluarTemplate.php | PHP | asf20 | 2,547 |
<?php
/**
* LoginForm class.
* LoginForm is the data structure for keeping
* user login form data. It is used by the 'login' action of 'SiteController'.
*/
class LoginForm extends CFormModel
{
public $nip;
public $password;
public $rememberMe;
private $_identity;
/**
* Declares the validation rules.
* ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/LoginForm.php | PHP | asf20 | 2,114 |
<?php
/**
* This is the model class for table "surat_keluar".
*
* The followings are the available columns in table 'surat_keluar':
* @property string $id_surat_keluar
* @property string $no_surat
* @property string $judul_surat
* @property string $isi_surat
* @property string $id_tipe_surat
* @property strin... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/SuratKeluar.php | PHP | asf20 | 4,728 |
<?php
/**
* This is the model class for table "mst_instansi".
*
* The followings are the available columns in table 'mst_instansi':
* @property string $id_instansi
* @property string $nama
* @property string $alamat
* @property string $email
* @property string $jenis_instansi
*
* The followings are the avail... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Instansi.php | PHP | asf20 | 2,677 |
<?php
/**
* This is the model class for table "mst_jenis_keperluan".
*
* The followings are the available columns in table 'mst_jenis_keperluan':
* @property string $id_keperluan
* @property string $nama
*/
class JenisKeperluan extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/JenisKeperluan.php | PHP | asf20 | 2,098 |
<?php
/**
* This is the model class for table "User".
*
* The followings are the available columns in table 'User':
* @property integer $id
* @property string $username
* @property string $password
* @property string $email
*/
class User extends CActiveRecord
{
/**
* Returns the static model of the specifie... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/User.php | PHP | asf20 | 2,267 |
<?php
/**
* This is the model class for table "menu".
*
* The followings are the available columns in table 'menu':
* @property integer $id
* @property integer $sort
* @property integer $parent
* @property string $title
* @property string $url
* @property string $bizrule
*/
class Menu extends CActiveRecord {... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Menu.php | PHP | asf20 | 5,369 |
<?php
/**
* This is the model class for table "mst_meetingroom".
*
* The followings are the available columns in table 'mst_meetingroom':
* @property string $id_meetingroom
* @property string $nama
* @property string $lokasi
* @property string $kapasitas
*/
class Meetingroom extends CActiveRecord
{
/**
* Re... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Meetingroom.php | PHP | asf20 | 2,493 |
<?php
/**
* This is the model class for table "pemakaian_meetingroom".
*
* The followings are the available columns in table 'pemakaian_meetingroom':
* @property string $id_pemakaian_meetingroom
* @property string $mulai
* @property string $akhir
* @property string $keterangan
* @property string $id_meetingroo... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/PemakaianMeetingroom.php | PHP | asf20 | 3,094 |
<?php
/**
* This is the model class for table "penerimaan_tamu".
*
* The followings are the available columns in table 'penerimaan_tamu':
* @property integer $id_penerimaan_tamu
* @property string $jadwal_mulai
* @property string $jadwal_selesai
* @property string $status_terima
* @property string $no_konfirma... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/PenerimaanTamu.php | PHP | asf20 | 6,568 |
<?php
/**
* This is the model class for table "mst_kartu_tamu".
*
* The followings are the available columns in table 'mst_kartu_tamu':
* @property string $id_kartu_tamu
* @property string $no_kartu
* @property integer $status
*/
class KartuTamu extends CActiveRecord
{
/**
* Returns the static model of the s... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/KartuTamu.php | PHP | asf20 | 2,370 |
<?php
/**
* This is the model class for table "mst_pegawai".
*
* The followings are the available columns in table 'mst_pegawai':
* @property string $id_pegawai
* @property string $nama
* @property string $nip
* @property string $alamat
* @property string $no_telp
* @property string $id_jabatan
* @property s... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Pegawai.php | PHP | asf20 | 3,328 |
<?php
/**
* This is the model class for table "menu_group".
*
* The followings are the available columns in table 'user_group':
* @property string $id_group
* @property string $id_user_group
*
* The followings are the available model relations:
* @property MstGroup $idGroup
*/
class MenuGroup extends CActiveR... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/MenuGroup.php | PHP | asf20 | 2,522 |
<?php
/**
* This is the model class for table "mst_group".
*
* The followings are the available columns in table 'mst_group':
* @property string $id_group
* @property string $nama
*/
class Group extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className acti... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Group.php | PHP | asf20 | 2,037 |
<?php
/**
* This is the model class for table "blacklist_tamu".
*
* The followings are the available columns in table 'blacklist_tamu':
* @property string $id_blacklist_tamu
* @property string $alasan
* @property string $id_tamu
*
* The followings are the available model relations:
* @property MstTamu $idTamu... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/BlacklistTamu.php | PHP | asf20 | 2,444 |
<?php
/**
* ContactForm class.
* ContactForm is the data structure for keeping
* contact form data. It is used by the 'contact' action of 'SiteController'.
*/
class ContactForm extends CFormModel
{
public $name;
public $email;
public $subject;
public $body;
public $verifyCode;
/**
* Declares the validatio... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/ContactForm.php | PHP | asf20 | 969 |
<?php
/**
* This is the model class for table "surat_masuk".
*
* The followings are the available columns in table 'surat_masuk':
* @property string $id_surat_masuk
* @property string $id_instansi
* @property string $no_surat
* @property string $upload_file
* @property string $info_penyimpanan
* @property str... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/SuratMasuk.php | PHP | asf20 | 4,421 |
<?php
/**
* This is the model class for table "mst_struktur_organisasi".
*
* The followings are the available columns in table 'mst_struktur_organisasi':
* @property integer $id
* @property string $nama
* @property String[] $tree
* @property integer $level
* @property integer $lft
* @property integer $rgt
* ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/StrukturOrganisasi.php | PHP | asf20 | 9,068 |
<?php
/**
* This is the model class for table "mst_tipe_surat".
*
* The followings are the available columns in table 'mst_tipe_surat':
* @property string $id_tipe_surat
* @property string $nama_tipe_surat
*/
class TipeSurat extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
*... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/TipeSurat.php | PHP | asf20 | 2,126 |
<?php
/**
* This is the model class for table "mst_identitas".
*
* The followings are the available columns in table 'mst_identitas':
* @property string $id_identitas
* @property string $no_identitas
* @property string $tipe_identitas
* @property Int $id_tamu
*
* The followings are the available model relatio... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Identitas.php | PHP | asf20 | 3,202 |
<?php
/**
* This is the model class for table "mst_tamu".
*
* The followings are the available columns in table 'mst_tamu':
* @property string $id_tamu
* @property string $nama
* @property string $alamat
* @property string $no_hp
* @property string $foto
* @property string $id_instansi
*
* The followings ar... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Tamu.php | PHP | asf20 | 2,816 |
<?php
/**
* This is the model class for table "mst_jenis_kegiatan".
*
* The followings are the available columns in table 'mst_jenis_kegiatan':
* @property string $id_kegiatan
* @property string $nama
*/
class JenisKegiatan extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/JenisKegiatan.php | PHP | asf20 | 2,087 |
<?php
/**
* This is the model class for table "pesan_notifikasi".
*
* The followings are the available columns in table 'pesan_notifikasi':
* @property string $id_pesan_notifikasi
* @property string $notifikasi
* @property string $status
* @property string $id_pegawai
* @property string $url
* @property strin... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/PesanNotifikasi.php | PHP | asf20 | 2,947 |
<?php
/**
* This is the model class for table "agenda_kegiatan".
*
* The followings are the available columns in table 'agenda_kegiatan':
* @property string $id_agenda_kegiatan
* @property string $waktu_mulai
* @property string $waktu_selesai
* @property string $lokasi
* @property string $catatan
* @property ... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/AgendaKegiatan.php | PHP | asf20 | 3,242 |
<?php
/**
* This is the model class for table "persetujuan_surat_keluar".
*
* The followings are the available columns in table 'persetujuan_surat_keluar':
* @property string $id_persetujuan_surat_keluar
* @property string $id_surat_keluar
* @property integer $sort
* @property string $id_pegawai
* @property st... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/PersetujuanSuratKeluar.php | PHP | asf20 | 4,129 |
<?php
/**
* This is the model class for table "test".
*
* The followings are the available columns in table 'test':
* @property integer $id
* @property string $nama
* @property string $kode
*/
class Test extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $clas... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Test.php | PHP | asf20 | 2,078 |
<?php
/**
* This is the model class for table "mst_jabatan".
*
* The followings are the available columns in table 'mst_jabatan':
* @property string $id_jabatan
* @property string $nama
* @property string $pid_jabatan
* @property Int $id_struktur_organisasi
*
* The followings are the available model relations... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/models/Jabatan.php | PHP | asf20 | 2,720 |
<?php
$class=get_class($model);
Yii::app()->clientScript->registerScript('gii.crud',"
$('#{$class}_controller').change(function(){
$(this).data('changed',$(this).val()!='');
});
$('#{$class}_model').bind('keyup change', function(){
var controller=$('#{$class}_controller');
if(!controller.data('changed')) {
var id=... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/views/index.php | PHP | asf20 | 2,418 |
<?php
class CustomGenerator extends CCodeGenerator {
public $layout = 'application.views.layouts.generator';
public $codeModel = 'application.gii.custom.CustomCode';
public $modelClass;
public $typeFields = array(
'checkbox' => 'Check Box',
'combobox' => 'Combo Box',
'datefield... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/CustomGenerator.php | PHP | asf20 | 2,449 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php
$nameColumn=$this->guessNameColumn($this->tableSchema->columns);... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/view.php | PHP | asf20 | 1,459 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php
$label=$this->class2name($this->modelClass);
echo "\$this->bread... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/create.php | PHP | asf20 | 514 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php
$nameColumn=$this->guessNameColumn($this->tableSchema->columns);... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/update.php | PHP | asf20 | 667 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php
//$label=$this->pluralize($this->class2name($this->modelClass));... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/index.php | PHP | asf20 | 1,582 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
/* @var $form CActiveForm */
?>
<?php echo "<?php"; ?> $this->beginWid... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/_search.php | PHP | asf20 | 2,259 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
<?php
$label=$this->pluralize($this->class2name($this->modelClass));
e... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/admin.php | PHP | asf20 | 1,942 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
/* @var $form CActiveForm */
?>
<?php
$label=$this->pluralize($this->c... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/_form.php | PHP | asf20 | 2,165 |
<?php
/**
* This is the template for generating a controller class file for CRUD feature.
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
<?php
?>
class <?php echo $this->controllerClass; ?> extends <?php echo $this->baseControllerClass."\n"; ?... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/controller.php | PHP | asf20 | 3,813 |
<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $data <?php echo $this->getModelClass(); ?> */
?>
<div class="view">
<?php
echo "\t<b><?php echo CHtml::encode(\$data... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/templates/default/_view.php | PHP | asf20 | 920 |
<?php
class CustomCode extends CCodeModel
{
public $model;
public $controller;
public $baseControllerClass='Controller';
private $_modelClass;
private $_table;
public function rules()
{
return array_merge(parent::rules(), array(
array('model, controller', 'filter', 'filter'=>'trim'),
array('model, con... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/custom/CustomCode.php | PHP | asf20 | 10,178 |
<h1>Form Generator</h1>
<p>This generator generates a view script file that displays a form to collect input for the specified model class.</p>
<?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?>
<div class="row">
<?php echo $form->labelEx($model,'model'); ?>
<?php echo $form->textField($mod... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/form/views/index.php | PHP | asf20 | 2,238 |
<?php
/**
* This is the template for generating the action script for the form.
* - $this: the CrudCode object
*/
?>
<?php
$viewName=basename($this->viewName);
?>
public function action<?php echo ucfirst(trim($viewName,'_')); ?>()
{
$model=new <?php echo $this->modelClass; ?><?php echo empty($this->scenario) ? '... | zxcvbnmasdfghjkl | trunk/paperless_svn/app/protected/gii/form/templates/default/action.php | PHP | asf20 | 991 |