Esempio n. 1
0
?>

        <?php 
echo $form->textFieldRow($model, 'limit', array('class' => 'span5'));
?>

        <?php 
echo $form->dropDownListRow($model, "up", VEnum::getEnumOptions($model, "up"), array("prompt" => "Please Select", "class" => "autocomplete"));
?>

        <?php 
echo $form->textFieldRow($model, 'created_at', array('class' => 'span5'));
?>

        <?php 
echo $form->dropDownListRow($model, "created_by", CreatedBy::model()->getOptions(), array("prompt" => "Please Select", "class" => "autocomplete"));
?>

        <?php 
echo $form->textFieldRow($model, 'updated_at', array('class' => 'span5'));
?>

        <?php 
echo $form->dropDownListRow($model, "updated_by", UpdatedBy::model()->getOptions(), array("prompt" => "Please Select", "class" => "autocomplete"));
?>

<div class="form-actions">
    <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Search'));
?>
</div>
Esempio n. 2
0
<?php

$this->breadcrumbs = array('Package Accounts' => array('index'), $model->id);
$this->menu = array(array('label' => 'List PackageAccount', 'url' => array('index')), array('label' => 'Create PackageAccount', 'url' => array('create')), array('label' => 'Update PackageAccount', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete PackageAccount', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => 'Manage PackageAccount', 'url' => array('admin')));
?>

<h2>View PackageAccount #<?php 
echo $model->id;
?>
</h2>

<?php 
$this->widget('bootstrap.widgets.TbEditableDetailView', array('url' => $this->createUrl('packageaccount/editable'), 'data' => $model, 'attributes' => array('id', 'code', 'satker_code', 'activity_code', 'output_code', 'suboutput_code', 'component_code', 'package_code', 'account_code', 'budget_code', 'province_code', 'city_code', 'ppk_code', 'limit', array('name' => 'up', 'value' => $model->up, 'editable' => array('type' => 'select', 'source' => VEnum::getEnumOptions($model, "up"))), 'created_at', array('name' => 'created_by', 'value' => $model->createdBy->name, 'editable' => array('type' => 'select', 'source' => CreatedBy::model()->getOptions())), 'updated_at', array('name' => 'updated_by', 'value' => $model->updatedBy->name, 'editable' => array('type' => 'select', 'source' => UpdatedBy::model()->getOptions())))));
Esempio n. 3
0
    <script src="server.js" type="text/javascript"></script>
</head>

<body class="bg2">
    <?php 
require "server/DatabasePDO.php";
require "server/Story.php";
require "server/Superhero.php";
require "server/SuperheroOf.php";
require "server/Publisher.php";
require "server/CreatedBy.php";
require "server/Author.php";
$story = Story::findById($_POST["storyID"]);
$publisher = Publisher::findById($story->getId());
$superheroof = SuperheroOf::findByStoryId($story->getId());
$createdby = CreatedBy::findByStoryId($story->getId());
?>
    <img id="upper_left" class="reflect" src="images/spiderman.png" width="450px">

    <div class="container result">
        <div class="row text-center header">
            <div id="logo"></div>
        </div>

        <!--Character Start-->
        <div class="panel panel-danger">
            <div class="panel-heading  text-center">
                STORY
            </div>
            <div class="panel-body">
                <div class="row">
Esempio n. 4
0
 private static function initializeConnection()
 {
     if (is_null(self::$dbConn)) {
         self::$dbConn = DatabasePDO::getInstance();
     }
 }