Diff
Added: plugins/krypton/DB.sql (0 => 1134)
--- plugins/krypton/DB.sql (rev 0)
+++ plugins/krypton/DB.sql 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,215 @@
+-- phpMyAdmin SQL Dump
+-- version 2.11.8.1deb5+lenny4
+-- http://www.phpmyadmin.net
+--
+-- Vært: mydb16.surf-town.net
+-- Genereringstid: 08. 07 2010 kl. 18:03:34
+-- Serverversion: 5.0.77
+-- PHP-version: 5.2.6-1+lenny8
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+--
+-- Database: `testlab_krypton`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_modules`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_modules` (
+ `id` int(11) NOT NULL auto_increment,
+ `name` varchar(255) collate utf8_bin NOT NULL,
+ `description` varchar(255) collate utf8_bin NOT NULL,
+ `code` text collate utf8_bin NOT NULL,
+ `prestate` varchar(255) collate utf8_bin NOT NULL,
+ `poststate` varchar(255) collate utf8_bin NOT NULL,
+ `created` datetime NOT NULL,
+ `updated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
+ `owner` varchar(255) collate utf8_bin NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=26 ;
+
+--
+-- Data dump for tabellen `krypton_modules`
+--
+
+INSERT INTO `krypton_modules` (`id`, `name`, `description`, `code`, `prestate`, `poststate`, `created`, `updated`, `owner`) VALUES
+(1, 'search', 'asd', 0x24746869732d3e73656c656e69756d2d3e74797065282271222c2224736561726368737472696e6722293b0d0a24746869732d3e73656c656e69756d2d3e636c69636b282242746e4722293b0d0a24746869732d3e73656c656e69756d2d3e77616974466f7250616765546f4c6f61642822333030303022293b, '1', '2', '0000-00-00 00:00:00', '2009-12-02 15:52:11', ''),
+(2, 'open', 'open site', 0x24746869732d3e73656c656e69756d2d3e6f70656e28222f22293b, '1', '2', '0000-00-00 00:00:00', '2009-12-02 15:42:29', ''),
+(3, 'loop', 'fg', 0x666f7220282469203d20313b202469203c3d2031303b2024692b2b29207b0d0a24746869732d3e73656c656e69756d2d3e636c69636b28222f2f6f6c5b4069643d2772736f275d2f6c695b24695d2f68332f6122293b0d0a24746869732d3e73656c656e69756d2d3e77616974466f7250616765546f4c6f61642822333030303022293b0d0a24746869732d3e73656c656e69756d2d3e676f4261636b28293b0d0a24746869732d3e73656c656e69756d2d3e77616974466f7250616765546f4c6f61642822333030303022293b0d0a7d0d0a666f726561636828246e616d657320617320246e616d65297b0d0a24746869732d3e73656c656e69756d2d3e69735465787450726573656e742822246e616d6522293b0d0a7d, '2', '1', '0000-00-00 00:00:00', '2009-12-02 15:47:57', '');
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_modules_tests`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_modules_tests` (
+ `id` int(11) NOT NULL auto_increment,
+ `module_id` int(11) NOT NULL,
+ `test_id` int(11) NOT NULL,
+ `order` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=57 ;
+
+--
+-- Data dump for tabellen `krypton_modules_tests`
+--
+
+INSERT INTO `krypton_modules_tests` (`id`, `module_id`, `test_id`, `order`) VALUES
+(51, 2, 12, 0),
+(49, 2, 1, 3),
+(48, 2, 11, 0),
+(47, 1, 11, 1),
+(45, 2, 10, 99999),
+(44, 1, 10, 99999),
+(42, 1, 1, 4),
+(34, 1, 2, 99999),
+(41, 2, 1, 5),
+(13, 1, 1, 1),
+(32, 2, 1, 0),
+(46, 3, 10, 99999),
+(50, 1, 12, 2),
+(52, 3, 12, 1),
+(53, 1, 13, 99999),
+(55, 2, 14, 0),
+(56, 1, 14, 1);
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_tests`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_tests` (
+ `id` int(11) NOT NULL auto_increment,
+ `name` varchar(255) collate utf8_bin NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=15 ;
+
+--
+-- Data dump for tabellen `krypton_tests`
+--
+
+INSERT INTO `krypton_tests` (`id`, `name`) VALUES
+(1, 'draft1'),
+(2, 'draft2'),
+(14, 'lslslsls'),
+(13, 'g'),
+(12, 'tyest'),
+(10, 'dfb'),
+(11, 'sdfghjkl');
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_vardatas`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_vardatas` (
+ `id` int(11) NOT NULL auto_increment,
+ `variable_id` int(11) NOT NULL,
+ `data` varchar(255) collate utf8_bin default NULL,
+ `modules_test_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=46 ;
+
+--
+-- Data dump for tabellen `krypton_vardatas`
+--
+
+INSERT INTO `krypton_vardatas` (`id`, `variable_id`, `data`, `modules_test_id`) VALUES
+(1, 1, '''bromine 3''222', 27),
+(8, 1, '"Bromine"', 13),
+(9, 2, '34567', 13),
+(10, 2, 'hhhhhhh', 27),
+(11, 1, '1', 29),
+(12, 2, '2', 29),
+(13, 1, 'jjjjj11jjjhhhjjjj', 31),
+(14, 2, 'hh', 31),
+(15, 2, 'hh', 31),
+(16, 2, '', 31),
+(17, 15, '', 27),
+(18, 14, '222', 27),
+(19, 11, '', 27),
+(20, 15, '', 31),
+(21, 14, '999', 31),
+(22, 11, '1', 31),
+(23, 15, '', 13),
+(24, 14, '', 13),
+(25, 11, '', 13),
+(26, 3, 'array(''ads'',''hans'')', 33),
+(27, 1, 'asdas', 34),
+(28, 2, '', 34),
+(29, 15, '', 34),
+(30, 14, '', 34),
+(31, 11, '', 34),
+(32, 10, '123', 35),
+(33, 16, '', 13),
+(34, 1, 'gddfgdfgd', 36),
+(35, 2, 'fgdfgd', 36),
+(36, 15, 'fgdfgd', 36),
+(37, 14, 'fgdfgdfgdfgdfg', 36),
+(38, 11, '', 36),
+(39, 16, '', 36),
+(40, 3, 'array(''jens'', ''Visti'')', 40),
+(41, 1, 'bdbcvbcvb', 42),
+(42, 1, 'asdfgh', 47),
+(43, 17, 'array(''dfgh'', ''asda'')', 47),
+(44, 1, 'hrhr', 56),
+(45, 17, 'ueuue', 56);
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_variables`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_variables` (
+ `id` int(11) NOT NULL auto_increment,
+ `module_id` int(11) NOT NULL,
+ `vartype_id` int(11) NOT NULL,
+ `name` varchar(255) collate utf8_bin NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=18 ;
+
+--
+-- Data dump for tabellen `krypton_variables`
+--
+
+INSERT INTO `krypton_variables` (`id`, `module_id`, `vartype_id`, `name`) VALUES
+(1, 1, 1, 'searchstring'),
+(17, 1, 2, 'bvn'),
+(3, 3, 2, 'names'),
+(4, 13, 1, 'strings'),
+(10, 18, 1, 'asd');
+
+-- --------------------------------------------------------
+
+--
+-- Struktur-dump for tabellen `krypton_vartypes`
+--
+
+CREATE TABLE IF NOT EXISTS `krypton_vartypes` (
+ `id` int(11) NOT NULL auto_increment,
+ `name` varchar(255) collate utf8_bin NOT NULL,
+ `rule` varchar(255) collate utf8_bin NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=3 ;
+
+--
+-- Data dump for tabellen `krypton_vartypes`
+--
+
+INSERT INTO `krypton_vartypes` (`id`, `name`, `rule`) VALUES
+(1, 'string', 'string'),
+(2, 'array', 'asda');
Added: plugins/krypton/controllers/components/empty ( => )
Added: plugins/krypton/controllers/krypton_commands_controller.php
===================================================================
--- plugins/krypton/controllers/krypton_commands_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_commands_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,82 @@
+<?php
+class KryptonCommandsController extends KryptonAppController {
+
+ var $helpers = array('Html', 'Form');
+
+ function index() {
+ $this->Command->recursive = 0;
+ $this->set('commands', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Command.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('command', $this->Command->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Command->create();
+ if ($this->Command->save($this->data)) {
+ $this->Session->setFlash(__('The Command has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Command could not be saved. Please, try again.', true));
+ }
+ }
+ $modules = $this->Command->Module->find('list');
+ $this->set(compact('modules'));
+ }
+
+ function edit($id = null, $type=null){
+ Configure::write('debug', 0);
+ $this->layout = null;
+ $value = $_POST['value'];
+ $this->data['Command']['id'] = $id;
+ $this->data['Command'][$type] = $value;
+ if ($this->Command->save($this->data)) {
+ $this->Session->setFlash("The $type was saved",true);
+ $this->set('value',$value);
+ }else{
+ $this->setFlash("The $type could not be saved.",'err');
+ $this->set('value',"The $type could not be saved.");
+ }
+
+
+ /*
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Command', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+
+ if ($this->Command->save($this->data)) {
+ $this->Session->setFlash(__('The Command has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Command could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Command->read(null, $id);
+ }
+ $modules = $this->Command->Module->find('list');
+ $this->set(compact('modules'));
+ */
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Command', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Command->del($id)) {
+ $this->Session->setFlash(__('Command deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/controllers/krypton_modules_controller.php (0 => 1134)
--- plugins/krypton/controllers/krypton_modules_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_modules_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,75 @@
+<?php
+class KryptonModulesController extends KryptonAppController {
+
+ var $helpers = array('Html', 'Form', 'Ajax');
+
+ function index() {
+ $this->set('modules', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Module.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('module', $this->KryptonModule->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ pr($this->data);
+ $this->KryptonModule->create();
+ if ($this->KryptonModule->save($this->data)) {
+ $this->Session->setFlash(__('The Module has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Module could not be saved. Please, try again.', true));
+ }
+ }
+ $tests = $this->KryptonModule->KryptonTest->find('list');
+ $this->set(compact('tests'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Module', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ //pr($this->data);
+ foreach($this->data['KryptonVariable'] as $k=>$variable){
+ if(empty($variable['name'])){
+ unset($this->data['KryptonVariable'][$k]);
+ }
+ }
+ //pr($this->data);
+ if ($this->KryptonModule->saveAll($this->data)) {
+ $this->Session->setFlash(__('The Module has been saved', true));
+ $this->redirect($this->referer());
+ } else {
+ $this->Session->setFlash(__('The Module could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->KryptonModule->read(null, $id);
+ }
+
+ $this->loadModel('KryptonVartype');
+ $kryptonVartypes = $this->KryptonVartype->find('list');
+ $tests = $this->KryptonModule->KryptonTest->find('list');
+ $this->set(compact('tests','kryptonVartypes'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Module', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->KryptonModule->del($id)) {
+ $this->Session->setFlash(__('Module deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/controllers/krypton_tests_controller.php (0 => 1134)
--- plugins/krypton/controllers/krypton_tests_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_tests_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,284 @@
+<?php
+class KryptonTestsController extends KryptonAppController {
+
+ var $helpers = array('Html', 'Form');
+
+ function index() {
+ $this->KryptonTest->recursive = 0;
+ $this->set('tests', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Test.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $t = $this->KryptonTest->find('first', array(
+ 'contain' => array(
+ 'KryptonModule'=>array(
+ 'KryptonVariable' => array(
+ 'KryptonVardata' => array(
+ 'conditions' => array(
+ 'krypton_test_id' => $id
+ )
+ )
+ )
+ )
+ ),
+ 'conditions' => array('KryptonTest.id' => $id)
+ ));
+ $this->set('test', $t);
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ pr($this->data);
+ $this->Test->create();
+ if ($this->Test->save($this->data)) {
+ $this->Session->setFlash(__('The Test has been saved', true));
+ $this->redirect(array('action'=>'edit',$this->Test->id));
+ } else {
+ $this->Session->setFlash(__('The Test could not be saved. Please, try again.', true));
+ }
+ }
+ $modules = $this->Test->Module->find('list');
+ $this->set(compact('modules'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Test', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->KryptonTest->save($this->data)) {
+ $this->Session->setFlash(__('The Test has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Test could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $test = $this->KryptonTest->find('first', array(
+ 'contain' => array(
+ 'KryptonModulesTest' => array(
+ 'KryptonModule' => array(
+ 'KryptonVariable' => array(
+ 'KryptonVartype'
+ )
+ ),
+ 'KryptonVardata'
+ )
+
+ )
+ ));
+ /*
+ foreach ($t['Module'] as $key=>&$module) {
+ $this->modules = array();
+ $this->current_module_id = $module['id'];
+ $this->getVarsDeep($id, $module['name']);
+ //pr($this->modules);
+ $module['nested'] = $this->modules;
+ }
+ */
+ $this->set('test', $test);
+ $modules = $this->KryptonTest->KryptonModule->find('list');
+ $this->set(compact('modules'));
+ }
+ }
+
+ function reorder($order){
+ $this->layout = null;
+ pr($order);
+ $order = split(',',$order);
+ foreach($order as $k=>$v){
+ $query = "UPDATE modules_tests SET modules_tests.order=$k WHERE id=$v";
+ $this->Test->query($query);
+ }
+ }
+
+ function addmodule($test_id, $module_id){
+ $query = "INSERT INTO modules_tests (id, module_id, test_id, modules_tests.order) VALUES (null, $module_id, $test_id, 99999)";
+ $this->Test->query($query);
+ $this->redirect($this->referer());
+ }
+
+ function removemodule($id){
+ $query = "DELETE FROM modules_tests WHERE id = $id LIMIT 1";
+ $this->Test->query($query);
+ $this->redirect($this->referer());
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Test', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Test->del($id)) {
+ $this->Session->setFlash(__('Test deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+ /*
+ function getVarsDeep($test_id, $name){
+ //pr($this->modules);
+ //$this->Test->Module->Behaviors->attach('Containable');
+ $module = $this->Test->Module->find('first', array(
+ 'contain' => array(
+ 'Variable' => array(
+ 'Vardata' => array(
+ 'conditions' => array(
+ 'test_id' => $test_id
+ )
+ )
+ )
+
+ ),
+ 'conditions' => array('Module.name' => $name)
+ ));
+
+
+ $codes = preg_split("/\/\/%%|%%\/\//", $module['Module']['code']);
+ //pr($codes);
+
+ if(count($codes)>1){
+ for($i=1; $i <= count($codes)-1; $i+=2){
+
+ $modulename = $codes[$i];
+ $module = $this->Test->Module->find('first', array(
+ 'contain' => array(
+ 'Variable' => array(
+ 'Vardata' => array(
+ 'conditions' => array(
+ 'test_id' => $test_id,
+ 'module_id' => $this->current_module_id
+
+ )
+ )
+ )
+
+ ),
+ 'conditions' => array('Module.name' => $modulename)
+ ));
+ $this->modules[] = $module;
+ $this->getVarsDeep($test_id, $modulename);
+ }
+ }
+
+ /*else{
+ //echo "Inserting code from $name<br />";
+ $this->modules .= $module['Module']['code'];
+ }
+
+
+ //$this->output[] = $module['Module']['code'];
+
+ }
+ */
+
+ function buildTestScript($test_id){
+ $this->Test->Behaviors->attach('Containable');
+ $test = $this->Test->find('first', array(
+ 'contain' => array(
+ 'ModulesTest' => array(
+ 'Module' => array(
+ 'Variable'
+ ),
+ 'Vardata'
+ )
+
+ )
+ ));
+ $code = '';
+ foreach($test['ModulesTest'] as $modulesTest){
+
+ $code .= "\n";
+ $code .= "//Executing module: ".$modulesTest['Module']['name']."\n";
+ $code .= "//Module description: ".$modulesTest['Module']['description']."\n";
+ $code .= "//Prestate: ".$modulesTest['Module']['prestate']."\n";
+ $code .= "//Poststate: ".$modulesTest['Module']['poststate']."\n";
+ $code .= "//Created: ".$modulesTest['Module']['created']."\n";
+ $code .= "//Updated: ".$modulesTest['Module']['updated']."\n";
+ $code .= "//Owner: ".$modulesTest['Module']['owner']."\n";
+
+ foreach ($modulesTest['Module']['Variable'] as $variable) {
+ $value = '';
+ foreach ($modulesTest['Vardata'] as $vardata) {
+ if($vardata['variable_id']===$variable['id']){
+ $value = $vardata['data'];
+ }
+ }
+ $code .= '$'.$variable['name']." = $value;\n";
+ }
+
+ $code .= $modulesTest['Module']['code']."\n";
+
+ }
+ $this->set('output',$code);
+ }
+
+ /*
+ function loopModules($modules_test_id, $name){
+
+ $module = $this->Test->Module->find('first', array(
+ 'contain' => array(
+ 'Variable' => array(
+ 'Vardata' => array(
+ 'conditions' => array(
+ 'Vardata.modules_test_id' => $modules_test_id
+ )
+ )
+ )
+
+ ),
+ 'conditions' => array('Module.name' => $name)
+ ));
+ pr($module);
+
+ $this->code .= "\n";
+ $this->code .= "//Executing module: ".$module['Module']['name']."\n";
+ $this->code .= "//Module description: ".$module['Module']['description']."\n";
+ $this->code .= "//Prestate: ".$module['Module']['prestate']."\n";
+ $this->code .= "//Poststate: ".$module['Module']['poststate']."\n";
+ $this->code .= "//Created: ".$module['Module']['created']."\n";
+ $this->code .= "//Updated: ".$module['Module']['updated']."\n";
+ $this->code .= "//Owner: ".$module['Module']['owner']."\n";
+
+ foreach($module['Variable'] as $var) {
+ $this->code .= '$' . $var['name'] . " = " . $var['Vardata'][0]['data'] .";\n";
+ }
+
+ $codes = preg_split("/\/\/%%|%%\/\//", $module['Module']['code']);
+ //pr($codes);
+
+ if(count($codes)>1){
+ for($i=1; $i <= count($codes)-1; $i+=2){
+ //echo $i."<br />";
+ $leftof = $codes[$i-1];
+ $modulename = $codes[$i];
+ $rightof = $codes[$i+1];
+ //echo "left: ".$leftof."<br />";
+ //echo "right: ".$rightof."<br />";
+
+ $this->code .= $leftof;
+ $this->loopModules($modules_test_id, $modulename);
+ if($i+1 == count($codes)-1){
+ $this->code .= $rightof;
+ }
+ }
+ }else{
+ //echo "Inserting code from $name<br />";
+ $this->code .= $module['Module']['code'];
+ }
+
+ $this->code .= "\n";
+ //$this->output[] = $module['Module']['code'];
+
+
+ }
+ */
+
+
+}
+?>
Added: plugins/krypton/controllers/krypton_vardatas_controller.php (0 => 1134)
--- plugins/krypton/controllers/krypton_vardatas_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_vardatas_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,76 @@
+<?php
+class KryptonVardatasController extends KryptonAppController {
+
+ var $helpers = array('Html', 'Form');
+
+ function index() {
+ $this->Vardata->recursive = 0;
+ $this->set('vardatas', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Vardata.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('vardata', $this->Vardata->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Vardata->create();
+ if ($this->Vardata->save($this->data)) {
+ $this->Session->setFlash(__('The Vardata has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Vardata could not be saved. Please, try again.', true));
+ }
+ }
+ $tests = $this->Vardata->Test->find('list');
+ $variables = $this->Vardata->Variable->find('list');
+ $this->set(compact('tests', 'variables'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Vardata', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Vardata->save($this->data)) {
+ $this->Session->setFlash(__('The Vardata has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Vardata could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Vardata->read(null, $id);
+ }
+ $tests = $this->Vardata->Test->find('list');
+ $variables = $this->Vardata->Variable->find('list');
+ $this->set(compact('tests','variables'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Vardata', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Vardata->del($id)) {
+ $this->Session->setFlash(__('Vardata deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+ function saveData(){
+ if($this->Vardata->saveAll($this->data['Vardata'])){
+ $this->Session->setFlash(__('The Vardata has been saved', true));
+ }else{
+ $this->Session->setFlash(__('SEJLLLEREERERRR', true));
+ }
+ $this->redirect($this->referer());
+ }
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/controllers/krypton_variables_controller.php (0 => 1134)
--- plugins/krypton/controllers/krypton_variables_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_variables_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,67 @@
+<?php
+class KryptonVariablesController extends KryptonAppController {
+
+ var $helpers = array('Html', 'Form');
+
+ function index() {
+ $this->Variable->recursive = 0;
+ $this->set('variables', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Variable.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('variable', $this->Variable->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Variable->create();
+ if ($this->Variable->save($this->data)) {
+ $this->Session->setFlash(__('The Variable has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Variable could not be saved. Please, try again.', true));
+ }
+ }
+ $modules = $this->Variable->Module->find('list');
+ $vartypes = $this->Variable->Vartype->find('list');
+ $this->set(compact('modules', 'vartypes'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Variable', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Variable->save($this->data)) {
+ $this->Session->setFlash(__('The Variable has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Variable could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Variable->read(null, $id);
+ }
+ $modules = $this->Variable->Module->find('list');
+ $vartypes = $this->Variable->Vartype->find('list');
+ $this->set(compact('modules','vartypes'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Variable', true));
+ $this->redirect($this->referer());
+ }
+ if ($this->Variable->del($id)) {
+ $this->Session->setFlash(__('Variable deleted', true));
+ $this->redirect($this->referer());
+ }
+ }
+
+}
+?>
Added: plugins/krypton/controllers/krypton_vartypes_controller.php (0 => 1134)
--- plugins/krypton/controllers/krypton_vartypes_controller.php (rev 0)
+++ plugins/krypton/controllers/krypton_vartypes_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,62 @@
+<?php
+class KryptonVartypesController extends KryptonAppController {
+
+
+ var $helpers = array('Html', 'Form');
+
+ function index() {
+ $this->Vartype->recursive = 0;
+ $this->set('vartypes', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Vartype.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('vartype', $this->Vartype->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Vartype->create();
+ if ($this->Vartype->save($this->data)) {
+ $this->Session->setFlash(__('The Vartype has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Vartype could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Vartype', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Vartype->save($this->data)) {
+ $this->Session->setFlash(__('The Vartype has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Vartype could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Vartype->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Vartype', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Vartype->del($id)) {
+ $this->Session->setFlash(__('Vartype deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/krypton.rar
(Binary files differ)
Property changes on: plugins/krypton/krypton.rar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/krypton_app_controller.php (0 => 1134)
--- plugins/krypton/krypton_app_controller.php (rev 0)
+++ plugins/krypton/krypton_app_controller.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,10 @@
+<?php
+class KryptonAppController extends AppController{
+ var $components = array('RequestHandler');
+ var $helpers = array('javascript', 'html');
+ var $layout = 'krypton';
+
+
+}
+
+?>
\ No newline at end of file
Added: plugins/krypton/krypton_app_model.php (0 => 1134)
--- plugins/krypton/krypton_app_model.php (rev 0)
+++ plugins/krypton/krypton_app_model.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,26 @@
+<?php
+/*
+Copyright 2007, 2008, 2009 Rasmus Berg Palm, Visti Kl\xF8ft and Jeppe Poss Pedersen
+
+This file is part of Bromine.
+
+Bromine is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Bromine is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Bromine. If not, see <http://www.gnu.org/licenses/>.
+*/
+?>
+<?php
+class KryptonAppModel extends AppModel {
+
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/meta.xml (0 => 1134)
--- plugins/krypton/meta.xml (rev 0)
+++ plugins/krypton/meta.xml 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<plugin>
+ <description>The pizza plugin finds a pizza pusher near you! It's created to function as a template</description>
+ <author>Ralle</author>
+ <email>N/A</email>
+ <website>N/A</website>
+</plugin>
\ No newline at end of file
Added: plugins/krypton/models/behaviors/empty ( => )
Added: plugins/krypton/models/datasources/empty
===================================================================
Added: plugins/krypton/models/krypton_module.php (0 => 1134)
--- plugins/krypton/models/krypton_module.php (rev 0)
+++ plugins/krypton/models/krypton_module.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,45 @@
+<?php
+class KryptonModule extends KryptonAppModel {
+
+ var $validate = array(
+ 'name' => array('notempty'),
+ 'description' => array('notempty')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'KryptonVariable' => array(
+ 'className' => 'Krypton.KryptonVariable',
+ 'foreignKey' => 'krypton_module_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'KryptonModulesTest' => array(
+ 'className' => 'Krypton.KryptonModulesTest',
+ 'foreignKey' => 'krypton_module_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+ var $hasAndBelongsToMany = array(
+ 'KryptonTest' => array(
+ 'with' => 'Krypton.KryptonModulesTest'
+ )
+ );
+}
+?>
\ No newline at end of file
Added: plugins/krypton/models/krypton_modules_test.php (0 => 1134)
--- plugins/krypton/models/krypton_modules_test.php (rev 0)
+++ plugins/krypton/models/krypton_modules_test.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,22 @@
+<?php
+ class KryptonModulesTest extends KryptonAppModel {
+
+ var $belongsTo = array(
+ 'KryptonModule' => array(
+ 'className' => 'Krypton.KryptonModule',
+ 'foreignKey' => 'krypton_module_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'KryptonTest' => array(
+ 'className' => 'Krypton.KryptonTest',
+ 'foreignKey' => 'krypton_test_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+ var $hasMany = array('Krypton.KryptonVardata');
+ }
+?>
\ No newline at end of file
Added: plugins/krypton/models/krypton_test.php (0 => 1134)
--- plugins/krypton/models/krypton_test.php (rev 0)
+++ plugins/krypton/models/krypton_test.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,36 @@
+<?php
+class KryptonTest extends KryptonAppModel {
+
+
+ var $validate = array(
+ 'name' => array('notempty')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'KryptonModulesTest' => array(
+ 'className' => 'Krypton.KryptonModulesTest',
+ 'foreignKey' => 'krypton_test_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => 'KryptonModulesTest.order ASC',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+
+ );
+
+
+ var $hasAndBelongsToMany = array(
+ 'KryptonModule' => array(
+ 'with' => 'Krypton.KryptonModulesTest'
+ )
+ );
+
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/models/krypton_vardata.php (0 => 1134)
--- plugins/krypton/models/krypton_vardata.php (rev 0)
+++ plugins/krypton/models/krypton_vardata.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,23 @@
+<?php
+class KryptonVardata extends KryptonAppModel {
+
+
+ var $validate = array(
+ 'krypton_test_id' => array('numeric'),
+ 'krypton_variable_id' => array('numeric'),
+ //'data' => array('rule'=>'notempty','message'=>'Not empty')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'KryptonVariable' => array(
+ 'className' => 'Krypton.KryptonVariable',
+ 'foreignKey' => 'krypton_variable_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/models/krypton_variable.php (0 => 1134)
--- plugins/krypton/models/krypton_variable.php (rev 0)
+++ plugins/krypton/models/krypton_variable.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,45 @@
+<?php
+class KryptonVariable extends KryptonAppModel {
+
+
+ var $validate = array(
+ 'krypton_module_id' => array('numeric'),
+ 'krypton_vartype_id' => array('numeric')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'KryptonModule' => array(
+ 'className' => 'Krypton.KryptonModule',
+ 'foreignKey' => 'krypton_module_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'KryptonVartype' => array(
+ 'className' => 'Krypton.KryptonVartype',
+ 'foreignKey' => 'krypton_vartype_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'KryptonVardata' => array(
+ 'className' => 'Krypton.KryptonVardata',
+ 'foreignKey' => 'krypton_variable_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/models/krypton_vartype.php (0 => 1134)
--- plugins/krypton/models/krypton_vartype.php (rev 0)
+++ plugins/krypton/models/krypton_vartype.php 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,28 @@
+<?php
+class KryptonVartype extends KryptonAppModel {
+
+
+ var $validate = array(
+ 'name' => array('notempty'),
+ 'rule' => array('notempty')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'KryptonVariable' => array(
+ 'className' => 'Krypton.KryptonVariable',
+ 'foreignKey' => 'krypton_vartype_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
Added: plugins/krypton/views/elements/empty ( => )
Added: plugins/krypton/views/errors/empty
===================================================================
Added: plugins/krypton/views/helpers/empty ( => )
Added: plugins/krypton/views/krypton_modules/add.ctp
===================================================================
--- plugins/krypton/views/krypton_modules/add.ctp (rev 0)
+++ plugins/krypton/views/krypton_modules/add.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,20 @@
+<div class="modules form">
+<?php echo $form->create('Module');?>
+
+<?php
+ echo "Name:<br />";
+ echo $form->input('name', array('label' => '', 'value' => 'name'));
+ echo "Description:<br />";
+ echo $form->input('description', array('label' => '', 'value' => 'description'));
+ echo "Owner:<br />";
+ echo $form->input('owner', array('label' => '', 'value' => 'owner'));
+ echo "Prestate:<br />";
+ echo $form->input('prestate', array('label' => '', 'value' => 'prestate'));
+ echo "Code:<br />";
+ echo $form->input('code', array('label' => '', 'value' => 'code', 'cols' => 70, 'rows' => 20));
+ echo "Poststate:<br />";
+ echo $form->input('poststate', array('label' => '', 'value' => 'poststate'));
+?>
+
+<?php echo $form->end('Submit');?>
+</div>
\ No newline at end of file
Added: plugins/krypton/views/krypton_modules/edit.ctp (0 => 1134)
--- plugins/krypton/views/krypton_modules/edit.ctp (rev 0)
+++ plugins/krypton/views/krypton_modules/edit.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,44 @@
+<div class="modules form">
+<?php echo $form->create('KryptonModule');?>
+<?php
+echo $form->input('id');
+echo "Name:<br />";
+echo $form->input('name', array('label' => ''));
+echo "Description:<br />";
+echo $form->input('description', array('label' => ''));
+echo "Owner:<br />";
+echo $form->input('owner', array('label' => ''));
+echo "Prestate:<br />";
+echo $form->input('prestate', array('label' => ''));
+echo "Code:<br />";
+echo $form->input('code', array('label' => '', 'cols' => 70, 'rows' => 20));
+echo "Poststate:<br />";
+echo $form->input('poststate', array('label' => ''));
+
+//pr($this->data);
+$key = 0;
+foreach ($this->data['KryptonVariable'] as $key=>$var){
+ echo $html->link($html->image('/krypton/img/list-remove.png'),array('controller'=>'krypton_variables', 'action'=>'delete', $var['id']),array('escape' => false));
+ echo $form->input("KryptonVariable.$key.id",array('value' => $var['id'], 'label' => '', 'div' => null));
+ echo $form->hidden("KryptonVariable.$key.krypton_module_id",array('value' => $var['krypton_module_id'], 'label' => '', 'div' => null));
+ echo "Variable type:";
+ echo $form->input("KryptonVariable.$key.krypton_vartype_id",array('value' => $var['krypton_vartype_id'], 'label' => '', 'div' => null));
+ echo "Name:";
+ echo $form->input("KryptonVariable.$key.name",array('value' => $var['name'], 'label' => '', 'div' => null));
+ echo "<br />";
+}
+$key++;
+echo "<a onclick='$(".'"addvar"'.").toggle();' style='cursor: pointer;'>Add variable</a>";
+echo "<br />";
+echo "<div id='addvar' style='display: none;'>";
+echo $form->hidden("KryptonVariable.$key.krypton_module_id",array('value' => $this->data['KryptonModule']['id'], 'label' => '', 'div' => null));
+echo "Variable type:";
+echo $form->input("KryptonVariable.$key.krypton_vartype_id",array('label' => '', 'div' => null ));
+echo "Name:";
+echo $form->input("KryptonVariable.$key.name",array('value' => '', 'label' => '', 'div' => null));
+echo "</div>";
+//pr($krypton_vartypes);
+?>
+
+<?php echo $form->end('Submit');?>
+</div>
Added: plugins/krypton/views/krypton_modules/index.ctp (0 => 1134)
--- plugins/krypton/views/krypton_modules/index.ctp (rev 0)
+++ plugins/krypton/views/krypton_modules/index.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,40 @@
+<div class="modules index">
+<h1><?php __('Modules');?></h1>
+<p>
+<?php
+echo $paginator->counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+<table cellpadding="0" cellspacing="0" style='width: 400px;'>
+<tr>
+ <th><?php echo $paginator->sort('name');?></th>
+ <th><?php echo $paginator->sort('description');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+</tr>
+<?php foreach ($modules as $module):?>
+ <tr>
+ <td>
+ <?php echo $html->link($module['KryptonModule']['name'], array('action' => 'edit', $module['KryptonModule']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $module['KryptonModule']['description']; ?>
+ </td>
+ <td class="actions">
+
+ <?php echo $html->link(__('Delete', true), array('action' => 'delete', $module['KryptonModule']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $module['KryptonModule']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+</table>
+</div>
+<div class="paging">
+ <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $paginator->numbers();?>
+ <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Module', true), array('action' => 'add')); ?></li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_modules/view.ctp (0 => 1134)
--- plugins/krypton/views/krypton_modules/view.ctp (rev 0)
+++ plugins/krypton/views/krypton_modules/view.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,152 @@
+<div class="modules view">
+<h2><?php __('Module');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $module['Module']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $module['Module']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $module['Module']['description']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Edit Module', true), array('action' => 'edit', $module['Module']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Delete Module', true), array('action' => 'delete', $module['Module']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $module['Module']['id'])); ?> </li>
+ <li><?php echo $html->link(__('List Modules', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Module', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Commands', true), array('controller' => 'commands', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Command', true), array('controller' => 'commands', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Commands');?></h3>
+ <?php if (!empty($module['Command'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Module Id'); ?></th>
+ <th><?php __('Order'); ?></th>
+ <th><?php __('Cmd'); ?></th>
+ <th><?php __('One'); ?></th>
+ <th><?php __('Two'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($module['Command'] as $command):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $command['id'];?></td>
+ <td><?php echo $command['module_id'];?></td>
+ <td><?php echo $command['order'];?></td>
+ <td><?php echo $command['cmd'];?></td>
+ <td><?php echo $command['one'];?></td>
+ <td><?php echo $command['two'];?></td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('controller' => 'commands', 'action' => 'view', $command['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('controller' => 'commands', 'action' => 'edit', $command['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('controller' => 'commands', 'action' => 'delete', $command['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $command['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Command', true), array('controller' => 'commands', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Variables');?></h3>
+ <?php if (!empty($module['Variable'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Module Id'); ?></th>
+ <th><?php __('Vartype Id'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($module['Variable'] as $variable):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $variable['id'];?></td>
+ <td><?php echo $variable['module_id'];?></td>
+ <td><?php echo $variable['vartype_id'];?></td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('controller' => 'variables', 'action' => 'view', $variable['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('controller' => 'variables', 'action' => 'edit', $variable['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('controller' => 'variables', 'action' => 'delete', $variable['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $variable['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Tests');?></h3>
+ <?php if (!empty($module['Test'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($module['Test'] as $test):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $test['id'];?></td>
+ <td><?php echo $test['name'];?></td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('controller' => 'tests', 'action' => 'view', $test['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('controller' => 'tests', 'action' => 'edit', $test['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('controller' => 'tests', 'action' => 'delete', $test['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $test['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: plugins/krypton/views/krypton_tests/add.ctp (0 => 1134)
--- plugins/krypton/views/krypton_tests/add.ctp (rev 0)
+++ plugins/krypton/views/krypton_tests/add.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,11 @@
+<div class="tests form">
+<h1> Add test </h1>
+<?php echo $form->create('KryptonTest');?>
+<?php
+ echo "Name:<br />";
+ echo $form->input('name', array('label'=>''));
+?>
+
+<br />
+<?php echo $form->end('Submit');?>
+</div>
Added: plugins/krypton/views/krypton_tests/build_test_script.ctp (0 => 1134)
--- plugins/krypton/views/krypton_tests/build_test_script.ctp (rev 0)
+++ plugins/krypton/views/krypton_tests/build_test_script.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,7 @@
+<?php
+
+
+echo nl2br($output);
+
+
+?>
\ No newline at end of file
Added: plugins/krypton/views/krypton_tests/edit.ctp (0 => 1134)
--- plugins/krypton/views/krypton_tests/edit.ctp (rev 0)
+++ plugins/krypton/views/krypton_tests/edit.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,83 @@
+<?php
+ //pr($test);
+?>
+<h1><?php echo $test['KryptonTest']['name']; $i = 0; ?></h1>
+<h2><?php echo $html->link('Build test', array('controller'=>'krypton_tests', 'action' => 'buildTestScript', $test['KryptonTest']['id'])) ?></h2>
+
+<div style='float: left; width: 70%;' id='sortablelistcontainer'>
+ <?php if (!empty($test['KryptonModulesTest'])):?>
+ <?php echo $form->create('KryptonVariable',array('url' => array('controller' => 'krypton_vardatas', 'action' => 'saveData')));?>
+ <ul id='sort'>
+ <?php foreach($test['KryptonModulesTest'] as $key=>$module): ?>
+ <li class='container' style='border-bottom: 1px solid lightgrey; list-style-type: none; cursor: move;' id='module_<?php echo $module['id'];?>'>
+ <?php echo $html->link($html->image('/krypton/img/list-remove.png'),array('controller'=>'krypton_tests', 'action'=>'removemodule', $module['id']),array('escape' => false)); ?>
+ <span><?php echo $module['KryptonModule']['name'];?></span>
+ <span><?php echo $module['KryptonModule']['description'];?></span>
+ <span>
+ <dl>
+ <?php
+
+ foreach ($module['KryptonModule']['KryptonVariable'] as $variable) {
+ echo '<dt>'.$variable['KryptonVartype']['name'] .' '. $variable['name'].'</dt>';
+ $value = '';
+ $id = '';
+ foreach ($module['KryptonVardata'] as $vardata) {
+ if($vardata['krypton_variable_id']===$variable['id']){
+ $value = $vardata['data'];
+ $id = $vardata['id'];
+ }
+ }
+ echo "<dd>";
+ echo $form->input("Vardata.$i.data", array('value' => $value, 'label' => '', 'size'=>'50'));
+ echo $form->hidden("Vardata.$i.id",array('value'=>$id));
+ echo $form->hidden("Vardata.$i.modules_test_id",array('value'=>$module['id']));
+ echo $form->hidden("Vardata.$i.variable_id",array('value'=>$variable['id']));
+ echo "</dd>";
+ $i++;
+ }
+ /*
+ foreach ($module['nested'] as $new=>$nested) {
+ foreach ($nested['Variable'] as $key=>$var) {
+ echo '<dt>'.$var['name'].'</dt>';
+ echo "<dd>";
+ $value = isset($var['Vardata'][0]['data']) ? $var['Vardata'][0]['data'] : '';
+ $id = isset($var['Vardata'][0]['id']) ? $var['Vardata'][0]['id'] : '';
+ echo $form->input("Vardata.$i.data", array('value' => $value, 'label' => '', 'size'=>'50'));
+ echo $form->hidden("Vardata.$i.id",array('value'=>$id));
+ echo $form->hidden("Vardata.$i.module_test_id",array('value'=>$module['ModulesTest']['id']));
+ echo $form->hidden("Vardata.$i.test_id",array('value'=>$test['Test']['id']));
+ echo $form->hidden("Vardata.$i.variable_id",array('value'=>$var['id']));
+ echo "</dd>";
+ $i++;
+ }
+ }
+ */
+ ?>
+ </dl>
+ </span>
+
+ </li>
+ <?php endforeach; ?>
+ </ul>
+ <?php echo $form->end('submit');?>
+ <script type='text/javascript'>
+ Sortable.create("sort", {
+ onUpdate: function() {
+ new Ajax.Updater('debug','/tests/reorder/'+Sortable.sequence("sort"));
+ $('sort').highlight();
+ }
+ });
+ </script>
+
+ <?php endif; ?>
+</div>
+<div style='float: right; width: 25%;'>
+<h1>Available modules</h1>
+ <?php
+ foreach($modules as $key => $module){
+ echo "<div>".$html->link($html->image('/krypton/img/list-add.png'),array('controller'=>'krypton_tests', 'action'=>'addmodule', $test['KryptonTest']['id'], $key),array('escape' => false)).$module.'</div>';
+ }
+ ?>
+</div>
+<!--div id='debug'>
+</div--s>
Added: plugins/krypton/views/krypton_tests/index.ctp (0 => 1134)
--- plugins/krypton/views/krypton_tests/index.ctp (rev 0)
+++ plugins/krypton/views/krypton_tests/index.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,35 @@
+<div class="tests index">
+<h1><?php __('Tests');?></h1>
+<p>
+<?php
+echo $paginator->counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+<table cellpadding="0" cellspacing="0">
+<tr>
+ <th><?php echo $paginator->sort('name');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+</tr>
+<?php foreach ($tests as $test):?>
+ <tr>
+ <td>
+ <?php echo $html->link($test['KryptonTest']['name'], array('action' => 'edit', $test['KryptonTest']['id'])); ?>
+ </td>
+ <td class="actions">
+ <?php echo $html->link(__('Delete', true), array('action' => 'delete', $test['KryptonTest']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $test['KryptonTest']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+</table>
+</div>
+<div class="paging">
+ <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $paginator->numbers();?>
+ <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Test', true), array('action' => 'add')); ?></li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_tests/reorder.ctp ( => )
Added: plugins/krypton/views/krypton_tests/view.ctp
===================================================================
--- plugins/krypton/views/krypton_tests/view.ctp (rev 0)
+++ plugins/krypton/views/krypton_tests/view.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,74 @@
+<h1><?php echo $test['KryptonTest']['name']; ?></h1>
+
+<div>
+ <?php if (!empty($test['KryptonModule'])):?>
+ <table cellpadding = "0" cellspacing = "0" style='width: 600px;'>
+ <tr>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Description'); ?></th>
+ <th>Variables</th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($test['KryptonModule'] as $module):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $module['name'];?></td>
+ <td><?php echo $module['description'];?></td>
+ <td>
+ <dl>
+ <?php
+ foreach ($module['KryptonVariable'] as $var) {
+ echo '<dt>'.$var['name'].'</dt>';
+ echo "<dd>";
+ echo isset($var['KryptonVardata'][0]['data']) ? $var['KryptonVardata'][0]['data']."<br />" : '';
+ echo "</dd>";
+ }
+ ?>
+ </dl>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+</div>
+<a style='cursor: pointer;' onclick="$('generatedcode').toggle();">GOGOGO</a>
+<div id='generatedcode' style='display: none;'>
+ <?php
+ foreach ($test['KryptonModule'] as $module) {
+ echo "<br />//Executing module: ".$module['name']."<br />";
+ echo "//Module description: ".$module['description']."<br />";
+ foreach ($module['KryptonVariable'] as $var) {
+ echo '$' . $var['name'] . " = " . $var['KryptonVardata'][0]['data'] .';<br />';
+
+ }
+ /*
+ foreach ($module['Command'] as $command) {
+ $one = $command['one'];
+ $two = $command['two'];
+
+ //echo $command['cmd'] . '-' . $one . '-' . $two . "<br />";
+ if (!empty($command['raw'])){
+ $raw = $command['raw'];
+ echo nl2br($raw). "<br />";
+ }else{
+
+ if (!empty($one) && !empty($two)){
+ echo '$this->selenium->'. $command['cmd'] . '("'.$one.'","'.$two.'");<br />';
+ }
+ elseif(!empty($one) && empty($two)){
+ echo '$this->selenium->'. $command['cmd'] . '("'.$one.'");<br />';
+ }
+ elseif (empty($one) && empty($two)){
+ echo '$this->selenium->'. $command['cmd'] . '();<br />';
+ }
+ }
+ }
+ */
+ }
+ ?>
+</div>
Added: plugins/krypton/views/krypton_vardatas/add.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vardatas/add.ctp (rev 0)
+++ plugins/krypton/views/krypton_vardatas/add.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,21 @@
+<div class="vardatas form">
+<?php echo $form->create('Vardata');?>
+ <fieldset>
+ <legend><?php __('Add Vardata');?></legend>
+ <?php
+ echo $form->input('test_id');
+ echo $form->input('variables');
+ echo $form->input('data');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('List Vardatas', true), array('action' => 'index'));?></li>
+ <li><?php echo $html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vardatas/edit.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vardatas/edit.ctp (rev 0)
+++ plugins/krypton/views/krypton_vardatas/edit.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,23 @@
+<div class="vardatas form">
+<?php echo $form->create('Vardata');?>
+ <fieldset>
+ <legend><?php __('Edit Vardata');?></legend>
+ <?php
+ echo $form->input('id');
+ echo $form->input('test_id');
+ echo $form->input('variable_id');
+ echo $form->input('data');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Vardata.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Vardata.id'))); ?></li>
+ <li><?php echo $html->link(__('List Vardatas', true), array('action' => 'index'));?></li>
+ <li><?php echo $html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vardatas/index.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vardatas/index.ctp (rev 0)
+++ plugins/krypton/views/krypton_vardatas/index.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,60 @@
+<div class="vardatas index">
+<h2><?php __('Vardatas');?></h2>
+<p>
+<?php
+echo $paginator->counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+<table cellpadding="0" cellspacing="0">
+<tr>
+ <th><?php echo $paginator->sort('id');?></th>
+ <th><?php echo $paginator->sort('test_id');?></th>
+ <th><?php echo $paginator->sort('variable_id');?></th>
+ <th><?php echo $paginator->sort('data');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+</tr>
+<?php
+$i = 0;
+foreach ($vardatas as $vardata):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+?>
+ <tr<?php echo $class;?>>
+ <td>
+ <?php echo $vardata['Vardata']['id']; ?>
+ </td>
+ <td>
+ <?php echo $html->link($vardata['Test']['name'], array('controller' => 'tests', 'action' => 'view', $vardata['Test']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $html->link($vardata['Variable']['id'], array('controller' => 'variables', 'action' => 'view', $vardata['Variable']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $vardata['Vardata']['data']; ?>
+ </td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('action' => 'view', $vardata['Vardata']['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('action' => 'edit', $vardata['Vardata']['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('action' => 'delete', $vardata['Vardata']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vardata['Vardata']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+</table>
+</div>
+<div class="paging">
+ <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $paginator->numbers();?>
+ <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Vardata', true), array('action' => 'add')); ?></li>
+ <li><?php echo $html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vardatas/save_data.ctp ( => )
Added: plugins/krypton/views/krypton_vardatas/view.ctp
===================================================================
--- plugins/krypton/views/krypton_vardatas/view.ctp (rev 0)
+++ plugins/krypton/views/krypton_vardatas/view.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,37 @@
+<div class="vardatas view">
+<h2><?php __('Vardata');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vardata['Vardata']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Test'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $html->link($vardata['Test']['name'], array('controller' => 'tests', 'action' => 'view', $vardata['Test']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Variable'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $html->link($vardata['Variable']['id'], array('controller' => 'variables', 'action' => 'view', $vardata['Variable']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Data'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vardata['Vardata']['data']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Edit Vardata', true), array('action' => 'edit', $vardata['Vardata']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Delete Vardata', true), array('action' => 'delete', $vardata['Vardata']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vardata['Vardata']['id'])); ?> </li>
+ <li><?php echo $html->link(__('List Vardatas', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vardata', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_variables/add.ctp (0 => 1134)
--- plugins/krypton/views/krypton_variables/add.ctp (rev 0)
+++ plugins/krypton/views/krypton_variables/add.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,23 @@
+<div class="variables form">
+<?php echo $form->create('Variable');?>
+ <fieldset>
+ <legend><?php __('Add Variable');?></legend>
+ <?php
+ echo $form->input('module_id');
+ echo $form->input('vartype_id');
+ echo $form->input('name');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('List Variables', true), array('action' => 'index'));?></li>
+ <li><?php echo $html->link(__('List Modules', true), array('controller' => 'modules', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Module', true), array('controller' => 'modules', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vartypes', true), array('controller' => 'vartypes', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vartype', true), array('controller' => 'vartypes', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vardatas', true), array('controller' => 'vardatas', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vardata', true), array('controller' => 'vardatas', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_variables/edit.ctp (0 => 1134)
--- plugins/krypton/views/krypton_variables/edit.ctp (rev 0)
+++ plugins/krypton/views/krypton_variables/edit.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,13 @@
+<div class="variables form">
+<?php echo $form->create('Variable');?>
+ <fieldset>
+ <legend><?php __('Edit Variable');?></legend>
+ <?php
+ echo $form->input('id');
+ echo $form->input('module_id');
+ echo $form->input('vartype_id');
+ echo $form->input('name');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
\ No newline at end of file
Added: plugins/krypton/views/krypton_variables/index.ctp (0 => 1134)
--- plugins/krypton/views/krypton_variables/index.ctp (rev 0)
+++ plugins/krypton/views/krypton_variables/index.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,62 @@
+<div class="variables index">
+<h2><?php __('Variables');?></h2>
+<p>
+<?php
+echo $paginator->counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+<table cellpadding="0" cellspacing="0">
+<tr>
+ <th><?php echo $paginator->sort('id');?></th>
+ <th><?php echo $paginator->sort('module_id');?></th>
+ <th><?php echo $paginator->sort('vartype_id');?></th>
+ <th><?php echo $paginator->sort('name');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+</tr>
+<?php
+$i = 0;
+foreach ($variables as $variable):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+?>
+ <tr<?php echo $class;?>>
+ <td>
+ <?php echo $variable['Variable']['id']; ?>
+ </td>
+ <td>
+ <?php echo $html->link($variable['Module']['name'], array('controller' => 'modules', 'action' => 'view', $variable['Module']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $html->link($variable['Vartype']['name'], array('controller' => 'vartypes', 'action' => 'view', $variable['Vartype']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $variable['Variable']['name']; ?>
+ </td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('action' => 'view', $variable['Variable']['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('action' => 'edit', $variable['Variable']['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('action' => 'delete', $variable['Variable']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $variable['Variable']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+</table>
+</div>
+<div class="paging">
+ <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $paginator->numbers();?>
+ <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Variable', true), array('action' => 'add')); ?></li>
+ <li><?php echo $html->link(__('List Modules', true), array('controller' => 'modules', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Module', true), array('controller' => 'modules', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vartypes', true), array('controller' => 'vartypes', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vartype', true), array('controller' => 'vartypes', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vardatas', true), array('controller' => 'vardatas', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vardata', true), array('controller' => 'vardatas', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_variables/view.ctp (0 => 1134)
--- plugins/krypton/views/krypton_variables/view.ctp (rev 0)
+++ plugins/krypton/views/krypton_variables/view.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,79 @@
+<div class="variables view">
+<h2><?php __('Variable');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $variable['Variable']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Module'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $html->link($variable['Module']['name'], array('controller' => 'modules', 'action' => 'view', $variable['Module']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vartype'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $html->link($variable['Vartype']['name'], array('controller' => 'vartypes', 'action' => 'view', $variable['Vartype']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $variable['Variable']['name']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Edit Variable', true), array('action' => 'edit', $variable['Variable']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Delete Variable', true), array('action' => 'delete', $variable['Variable']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $variable['Variable']['id'])); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Modules', true), array('controller' => 'modules', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Module', true), array('controller' => 'modules', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vartypes', true), array('controller' => 'vartypes', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vartype', true), array('controller' => 'vartypes', 'action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Vardatas', true), array('controller' => 'vardatas', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vardata', true), array('controller' => 'vardatas', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Vardatas');?></h3>
+ <?php if (!empty($variable['Vardata'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Test Id'); ?></th>
+ <th><?php __('Variable Id'); ?></th>
+ <th><?php __('Data'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($variable['Vardata'] as $vardata):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $vardata['id'];?></td>
+ <td><?php echo $vardata['test_id'];?></td>
+ <td><?php echo $vardata['variable_id'];?></td>
+ <td><?php echo $vardata['data'];?></td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('controller' => 'vardatas', 'action' => 'view', $vardata['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('controller' => 'vardatas', 'action' => 'edit', $vardata['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('controller' => 'vardatas', 'action' => 'delete', $vardata['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vardata['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Vardata', true), array('controller' => 'vardatas', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: plugins/krypton/views/krypton_vartypes/add.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vartypes/add.ctp (rev 0)
+++ plugins/krypton/views/krypton_vartypes/add.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,18 @@
+<div class="vartypes form">
+<?php echo $form->create('Vartype');?>
+ <fieldset>
+ <legend><?php __('Add Vartype');?></legend>
+ <?php
+ echo $form->input('name');
+ echo $form->input('rule');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('List Vartypes', true), array('action' => 'index'));?></li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vartypes/edit.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vartypes/edit.ctp (rev 0)
+++ plugins/krypton/views/krypton_vartypes/edit.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,20 @@
+<div class="vartypes form">
+<?php echo $form->create('Vartype');?>
+ <fieldset>
+ <legend><?php __('Edit Vartype');?></legend>
+ <?php
+ echo $form->input('id');
+ echo $form->input('name');
+ echo $form->input('rule');
+ ?>
+ </fieldset>
+<?php echo $form->end('Submit');?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Vartype.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Vartype.id'))); ?></li>
+ <li><?php echo $html->link(__('List Vartypes', true), array('action' => 'index'));?></li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vartypes/index.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vartypes/index.ctp (rev 0)
+++ plugins/krypton/views/krypton_vartypes/index.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,54 @@
+<div class="vartypes index">
+<h2><?php __('Vartypes');?></h2>
+<p>
+<?php
+echo $paginator->counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+<table cellpadding="0" cellspacing="0">
+<tr>
+ <th><?php echo $paginator->sort('id');?></th>
+ <th><?php echo $paginator->sort('name');?></th>
+ <th><?php echo $paginator->sort('rule');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+</tr>
+<?php
+$i = 0;
+foreach ($vartypes as $vartype):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+?>
+ <tr<?php echo $class;?>>
+ <td>
+ <?php echo $vartype['Vartype']['id']; ?>
+ </td>
+ <td>
+ <?php echo $vartype['Vartype']['name']; ?>
+ </td>
+ <td>
+ <?php echo $vartype['Vartype']['rule']; ?>
+ </td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('action' => 'view', $vartype['Vartype']['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('action' => 'edit', $vartype['Vartype']['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('action' => 'delete', $vartype['Vartype']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vartype['Vartype']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+</table>
+</div>
+<div class="paging">
+ <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $paginator->numbers();?>
+ <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Vartype', true), array('action' => 'add')); ?></li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: plugins/krypton/views/krypton_vartypes/view.ctp (0 => 1134)
--- plugins/krypton/views/krypton_vartypes/view.ctp (rev 0)
+++ plugins/krypton/views/krypton_vartypes/view.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,68 @@
+<div class="vartypes view">
+<h2><?php __('Vartype');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vartype['Vartype']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vartype['Vartype']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rule'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vartype['Vartype']['rule']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('Edit Vartype', true), array('action' => 'edit', $vartype['Vartype']['id'])); ?> </li>
+ <li><?php echo $html->link(__('Delete Vartype', true), array('action' => 'delete', $vartype['Vartype']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vartype['Vartype']['id'])); ?> </li>
+ <li><?php echo $html->link(__('List Vartypes', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Vartype', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $html->link(__('List Variables', true), array('controller' => 'variables', 'action' => 'index')); ?> </li>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Variables');?></h3>
+ <?php if (!empty($vartype['Variable'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Module Id'); ?></th>
+ <th><?php __('Vartype Id'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($vartype['Variable'] as $variable):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $variable['id'];?></td>
+ <td><?php echo $variable['module_id'];?></td>
+ <td><?php echo $variable['vartype_id'];?></td>
+ <td class="actions">
+ <?php echo $html->link(__('View', true), array('controller' => 'variables', 'action' => 'view', $variable['id'])); ?>
+ <?php echo $html->link(__('Edit', true), array('controller' => 'variables', 'action' => 'edit', $variable['id'])); ?>
+ <?php echo $html->link(__('Delete', true), array('controller' => 'variables', 'action' => 'delete', $variable['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $variable['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $html->link(__('New Variable', true), array('controller' => 'variables', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: plugins/krypton/views/layouts/js/empty ( => )
Added: plugins/krypton/views/layouts/krypton.ctp
===================================================================
--- plugins/krypton/views/layouts/krypton.ctp (rev 0)
+++ plugins/krypton/views/layouts/krypton.ctp 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+ <?php echo $html->charset(); ?>
+ <title><?php echo $title_for_layout; ?></title>
+ <?php
+ echo $html->meta('icon');
+
+ echo $html->css('/krypton/css/style');
+ echo $javascript->link('prototype');
+ echo $javascript->link('scriptaculous');
+
+ echo $scripts_for_layout;
+ ?>
+</head>
+
+<body>
+ <div id="main">
+ <div id="header">
+ <div id="logo">
+ <div id="logo_text">
+ <!-- class="orange", allows you to change the colour of the text - other classes are: "blue", "green", "red", "purple" and "yellow" -->
+ <h1><span class="orange">Kr</span>ypton</h1>
+ </div>
+ <div id="menubar">
+ <ul id="menu">
+ <!-- put class="tab_selected" in the li tag for the selected page - to highlight which page you're on -->
+ <!-- put class="first" in the a tag for the first page in the menu -->
+ <!-- put class="last" in the a tag for the last page in the menu -->
+ <li><?php echo $html->link('Tests',array('controller'=>'krypton_tests','action'=>'index')); ?></li>
+ <li><?php echo $html->link('Modules',array('controller'=>'krypton_modules','action'=>'index')); ?></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div id="site_content" >
+
+ <!--div class="sidebar">
+ <h2>Todo</h2>
+ <ul>
+ <li>Skal kunne slette variable fra moduler</li>
+ <li>vis nested modules's variable</li>
+ <li>Fix build tests</li>
+ <li>pre og poststate skal matche</li>
+ <li>lav testscriptet færdig, dvs put koden ind i en klasse osv</li>
+ <li></a></li>
+ </ul>
+ </div-->
+ <div id="content">
+ <?php $session->flash(); ?>
+
+ <?php echo $content_for_layout; ?>
+ </div>
+ </div>
+ <div id="footer">Copyright © Company Name. All Rights Reserved. | <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a></div>
+ </div>
+</body>
+</html>
Added: plugins/krypton/views/layouts/rss/empty ( => )
Added: plugins/krypton/views/layouts/xml/empty
===================================================================
Added: plugins/krypton/views/scaffolds/empty ( => )
Added: plugins/krypton/webroot/css/back.png
===================================================================
(Binary files differ)
Property changes: plugins/krypton/webroot/css/back.png
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/footer.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/footer.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/graphic.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/graphic.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/green_logo.jpg
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/green_logo.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/link.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/link.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/menu.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/menu.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/pattern.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/css/pattern.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/css/style.css (0 => 1134)
--- plugins/krypton/webroot/css/style.css (rev 0)
+++ plugins/krypton/webroot/css/style.css 2010-08-08 13:10:10 UTC (rev 1134)
@@ -0,0 +1,338 @@
+html
+{ height: 100%;}
+
+*
+{ margin: 0;
+ padding: 0;}
+
+body
+{ font: normal .80em arial, sans-serif;
+ background: #F6F4F0 url(/krypton/css/pattern.png);
+ color: #47433F;}
+
+p
+{ padding: 0 0 20px 0;
+ line-height: 1.7em;}
+
+img
+{ border: 0;}
+
+h1, h2, h3, h4, h5, h6
+{ color: #362C20;
+ padding: 0 0 5px 0;}
+
+h1, h4
+{ font: normal 175% "lucida sans unicode", arial;
+ margin: 0 0 15px 0;
+ padding: 15px 20px 5px 0;}
+
+h2, h5
+{ color: #B60000;
+ padding: 10px 0 15px 0;
+ font: normal 120% arial;}
+
+h3, h6
+{ color: #888;
+ font: italic 95% arial;
+ padding: 0 0 15px 0;}
+
+h4, h6
+{ color: #B60000;}
+
+h5
+{ color: #362C20;}
+
+a, a:hover
+{ outline: none;
+ text-decoration: underline;
+ color: rgb(71, 67, 63);}
+
+a:hover
+{ text-decoration: none;}
+
+.left
+{ float: left;
+ width: auto;
+ margin-right: 10px;}
+
+.right
+{ float: right;
+ width: auto;
+ margin-left: 10px;}
+
+.center
+{ display: block;
+ text-align: center;
+ margin: 20px auto;}
+
+blockquote
+{ margin: 20px 0;
+ padding: 10px 20px 0 20px;
+ border: 1px solid #E5E5DB;
+ background: #FFF;}
+
+ul
+{ margin: 2px 0 22px 17px;}
+
+ul li
+{ list-style-type: circle;
+ margin: 0 0 6px 0;
+ padding: 0 0 4px 5px;}
+
+ol
+{ margin: 8px 0 22px 25px;}
+
+ol li
+{ margin: 0 0 11px 0;}
+
+#main, #logo, #menubar, #site_content, #footer
+{ margin-left: auto;
+ margin-right: auto;}
+
+#header
+{ background: url(/krypton/css/back.png) repeat-x;
+ height: 185px;}
+
+#logo
+{ width: 875px;
+ position: relative;
+ height: 193px;
+ background: url(/krypton/css/green_logo.jpg) no-repeat;}
+
+#logo #logo_text
+{ position: absolute;
+ top: 10px;
+ left: 0;}
+
+#logo h1
+{ font: normal 300% 'century gothic', arial, sans-serif;
+ border-bottom: 0;
+ text-transform: none;
+ margin: 0;
+ padding: 45px 0 0 0;
+ background: transparent;
+ color: #FFF;}
+
+#menubar
+{ width: 875px;
+ height: 48px;
+ padding: 0 0 0 4px;
+ position: absolute;
+ bottom: 0;}
+
+ul#menu
+{ float: right;
+ height: 40px;
+ background: url(/krypton/css/menu.png) repeat-x;
+ width: auto;}
+
+ul#menu li
+{ float: left;
+ margin: 6px 0 0 0;
+ padding: 0 0 0 0;
+ list-style: none;
+ width: auto;}
+
+ul#menu li a
+{ font: normal 100% 'lucida sans unicode', arialserif;
+ display: block;
+ float: left;
+ height: 12px;
+ padding: 2px 16px 8px 16px;
+ text-align: center;
+ background: transparent;
+ color: #FFF;
+ text-transform: uppercase;
+ border-left: 1px solid #FFCB99;
+ border-right: 1px solid #AE5A00;
+ text-decoration: none;
+ width: auto;}
+
+ul#menu li a.first
+{ border-left: 0;}
+
+ul#menu li a.last
+{ border-right: 0;}
+
+ul#menu li a:hover, ul#menu li.tab_selected a, ul#menu li.tab_selected a:hover
+{ color: #111;}
+
+#site_content
+{ width: 877px;
+ overflow: hidden;
+ margin: 20px auto}
+
+.sidebar
+{ float: right;
+ width: 190px;
+ padding: 0 15px 20px 15px;}
+
+.sidebar h2
+{ padding: 0 0 5px 0;}
+
+.sidebar ul
+{ width: 190px;
+ padding: 4px 0 0 0;
+ margin: 4px 0 30px 0;}
+
+.sidebar li
+{ list-style: none;
+ padding: 0 0 7px 0; }
+
+.sidebar li a, .sidebar li a:hover
+{ padding: 0 0 0 25px;
+ display: block;
+ background: transparent url(/krypton/css/link.png) no-repeat left center;}
+
+.sidebar li a.selected
+{ color: #444;}
+
+#content
+{ text-align: left;
+ width: 100%;
+ padding: 0;}
+
+#footer
+{ width: 100%;
+ font-family: sans-serif;
+ font-size: 90%;
+ height: 33px;
+ padding: 24px 0 5px 0;
+ text-align: center;
+ background: #635B53 url(/krypton/css/footer.png) repeat-x;
+ color: #A8AA94;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;}
+
+#footer a, #footer a:hover
+{ background: transparent;
+ color: #A8AA94;
+ text-decoration: none;}
+
+#footer a:hover
+{ background: transparent;
+ color: #FFF;}
+
+.yellow
+{ color: #F7C015;}
+
+.blue
+{ color: #33A994;}
+
+.orange
+{ color: #FF9417;}
+
+.red
+{ color: #C80500;}
+
+.purple
+{ color: #EB0FFF;}
+
+.green
+{ color: #A4AA04;}
+
+.form_settings
+{ margin: 15px 0 0 0;}
+
+.form_settings p
+{ padding: 0 0 4px 0;}
+
+.form_settings span
+{ float: left;
+ width: 200px;
+ text-align: left;}
+
+.form_settings input, .form_settings textarea
+{ padding: 2px;
+ width: 299px;
+ font: 100% arial;
+ border: 1px solid #E5E5DB;
+ background: #FFF;
+ color: #47433F;}
+
+.form_settings .submit
+{ font: 100% arial;
+ border: 1px solid;
+ width: 99px;
+ margin: 0 0 0 206px;
+ height: 26px;
+ padding: 2px 0 3px 0;
+ cursor: pointer;
+ background: #63574B;
+ color: #FFF;}
+
+.form_settings textarea, .form_settings select
+{ font: 100% arial;
+ width: 299px;}
+
+.form_settings select
+{ width: 304px;}
+
+.form_settings .checkbox
+{ margin: 4px 0;
+ padding: 0;
+ width: 14px;
+ border: 0;
+ background: none;}
+
+.separator
+{ width: 100%;
+ height: 0;
+ border-top: 1px solid #D9D5CF;
+ border-bottom: 1px solid #FFF;
+ margin: 0 0 20px 0;}
+
+table
+{ margin: 10px 0 30px 0;}
+
+table tr th, table tr td
+{ background: #f2f2f2;
+ color: #FFF;
+ padding: 7px 4px;}
+
+table tr td
+{ background: white;
+ color: #47433F;
+ border-top: 1px solid #EDEBE5;}
+
+ /*CAKE STUFF*/
+
+dl {
+ line-height: 2em;
+ margin: 0em 0em;
+ width: 60%;
+}
+dl.altrow {
+ background: #f4f4f4;
+}
+dt {
+ font-weight: bold;
+ padding-left: 4px;
+ vertical-align: top;
+}
+dd {
+ margin-left: 10em;
+ margin-top: -2em;
+ vertical-align: top;
+}
+
+/* Paging */
+div.paging {
+ background:#fff;
+ color: #ccc;
+ margin-bottom: 2em;
+}
+div.paging div.disabled {
+ color: #ddd;
+ display: inline;
+}
+div.paging span {
+}
+div.paging span.current {
+ color: #000;
+}
+div.paging span a {
+}
+
+
+/* OWN STUFF */
Added: plugins/krypton/webroot/img/list-add.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/img/list-add.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/krypton/webroot/img/list-remove.png
(Binary files differ)
Property changes on: plugins/krypton/webroot/img/list-remove.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream