summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Wsat/pages')
-rw-r--r--framework/Wsat/pages/TWsatGenerateAR.page33
-rw-r--r--framework/Wsat/pages/TWsatGenerateAR.php49
-rw-r--r--framework/Wsat/pages/TWsatHome.page5
-rw-r--r--framework/Wsat/pages/TWsatHome.php15
-rw-r--r--framework/Wsat/pages/TWsatLogin.page45
-rw-r--r--framework/Wsat/pages/TWsatLogin.php30
-rw-r--r--framework/Wsat/pages/TWsatScaffolding.page3
-rw-r--r--framework/Wsat/pages/TWsatScaffolding.php15
-rw-r--r--framework/Wsat/pages/config.xml5
-rw-r--r--framework/Wsat/pages/layout/TWsatLayout.php32
-rw-r--r--framework/Wsat/pages/layout/TWsatLayout.tpl53
11 files changed, 0 insertions, 285 deletions
diff --git a/framework/Wsat/pages/TWsatGenerateAR.page b/framework/Wsat/pages/TWsatGenerateAR.page
deleted file mode 100644
index acd456fd..00000000
--- a/framework/Wsat/pages/TWsatGenerateAR.page
+++ /dev/null
@@ -1,33 +0,0 @@
-<com:TContent ID="Content">
- <div style="margin-left: 220px; font-size: 14px">
- <div class="form_row">
- <com:TLabel Text="Table Name:" ForControl="table_name" style="margin-right: 24px" />
- <com:TTextBox ID="table_name" Text="*" CssClass="in_text" />
- <com:TRequiredFieldValidator ControlToValidate="table_name" Text="Table name cannot be blank." Display="Dynamic" />
- </div>
- <div class="form_row">
- <com:TLabel Text="Class Prefix:" ForControl="class_prefix" style="margin-right: 25px"/>
- <com:TTextBox ID="class_prefix" Text="AR_" CssClass="in_text" />
- </div>
- <div class="form_row">
- <com:TLabel Text="Output Folder:" ForControl="output_folder" style="margin-right: 8px"/>
- <com:TTextBox ID="output_folder" Text="Application.App_Data.AR_Classes" CssClass="in_text" />
- </div>
-
- <div class="form_row">
- <com:TLabel Text="Build Relations:" ForControl="build_rel"/>
- <com:TCheckBox ID="build_rel" Checked="true" />
- </div>
-
- <com:TPanel ID="success_panel" Visible="false">
- <com:TLabel ID="generation_msg" />
- </com:TPanel>
-
- <br/>
- <div style="text-align: center">
- <com:TButton Text="Preview" OnClick="preview" Visible="false" />
- <com:TButton Text="Generate" OnClick="generate" />
- </div>
- </div>
-
-</com:TContent>
diff --git a/framework/Wsat/pages/TWsatGenerateAR.php b/framework/Wsat/pages/TWsatGenerateAR.php
deleted file mode 100644
index 3d4291e2..00000000
--- a/framework/Wsat/pages/TWsatGenerateAR.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/**
- * Description of Inicio
- *
- * @author daniels
- */
-Prado::using("System.Wsat.TWsatARGenerator");
-
-class TWsatGenerateAR extends TPage {
-
- public function generate($sender) {
- if ($this->IsValid) {
- $table_name = $this->table_name->Text;
- $class_prefix = $this->class_prefix->Text;
- $output_folder_ns = $this->output_folder->Text;
-
- try {
- $ar_generator = new TWsatARGenerator();
- $ar_generator->setOpFile($output_folder_ns);
- $ar_generator->setClasPrefix($class_prefix);
-
- if ($this->build_rel->Checked) {
- $ar_generator->buildRelations();
- }
- if ($table_name != "*") {
- $ar_generator->generate($table_name);
- } else {
- $ar_generator->generateAll();
- }
- $this->success_panel->CssClass = "success_panel";
- $this->generation_msg->Text = "The code has been generated successfully.";
- } catch (Exception $ex) {
- $this->success_panel->CssClass = "exception_panel";
- $this->generation_msg->Text = $ex->getMessage();
- }
- $this->success_panel->Visible = true;
- }
- }
-
- public function preview($sender) {
-// $ar_generator = new TWsatARGenerator();
-// $ar_generator->renderAllTablesInformation();
- throw new THttpException(500, "Not implemented yet.");
- }
-
-}
-
-?> \ No newline at end of file
diff --git a/framework/Wsat/pages/TWsatHome.page b/framework/Wsat/pages/TWsatHome.page
deleted file mode 100644
index 16aa3669..00000000
--- a/framework/Wsat/pages/TWsatHome.page
+++ /dev/null
@@ -1,5 +0,0 @@
-<com:TContent ID="Content">
- <label style="font-size: 18px; font-weight: bold">Welcome to Web Site Administration Tool</label>
-
- <div style="margin-top: 25px"><b>Application Dir:</b> <%= Prado::getPathOfNamespace('Application') %></div>
-</com:TContent>
diff --git a/framework/Wsat/pages/TWsatHome.php b/framework/Wsat/pages/TWsatHome.php
deleted file mode 100644
index a7430911..00000000
--- a/framework/Wsat/pages/TWsatHome.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/**
- * Description of Inicio
- *
- * @author daniels
- */
-Prado::using("System.Wsat.TWsatARGenerator");
-
-class TWsatHome extends TPage {
-
-
-}
-
-?> \ No newline at end of file
diff --git a/framework/Wsat/pages/TWsatLogin.page b/framework/Wsat/pages/TWsatLogin.page
deleted file mode 100644
index d0a94f2a..00000000
--- a/framework/Wsat/pages/TWsatLogin.page
+++ /dev/null
@@ -1,45 +0,0 @@
-<%@ MasterClass="" %>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <com:THead Title="PRADO - WSAT">
- <com:TMetaTag HttpEquiv="Content-Type" Content="text/html; charset=utf-8" />
- <com:TMetaTag HttpEquiv="Content-Language" Content="en" />
- </com:THead>
-
- <body>
- <com:TForm>
-
- <div id="header">
- <a href="<%= $this->Service->DefaultPageUrl %>">
- <div class="logo"></div>
- <div style="float: left; margin-top: 17px">PRADO <br /> Web Site Administration Tool</div>
- </a>
- <div class="mantisbg"></div>
- <div style="clear: both"></div>
- </div>
-
- <div class="mainmenu">
- <div style="float: right"><com:THyperLink NavigateUrl="http://www.pradosoft.com/" Text="PradoSoft.com" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="float: right"><com:THyperLink NavigateUrl="<%= $this->Service->DefaultPageUrl %>" Text="Web App" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="float: right"><com:THyperLink NavigateUrl="http://www.pradosoft.com/forum/" Text="Help" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="clear: both"></div>
- </div>
-
- <div class="login_form">
- <com:TLabel Text="Please enter your password:" ForControl="password"/><br/>
- <com:TTextBox ID="password" TextMode="Password" style="margin: 5px" /><br/>
- <com:TRequiredFieldValidator ControlToValidate="password" ValidationGroup="loginGroup" Text="Password cannot be blank." /><br/>
- <com:TCustomValidator ControlToValidate="password" ValidationGroup="loginGroup" OnServerValidate="validatePassword" Text="Incorrect password." />
-
- <com:TButton Text="Enter" ValidationGroup="loginGroup" OnClick="login" />
- </div>
-
- <div id="footer">
- Copyright &copy; 2005-<%= date('Y') %> <a href="http://www.pradosoft.com">PradoSoft</a>.
- <br/><br/>
- <%= Prado::poweredByPrado() %>
- </div>
- </com:TForm>
- </body>
-</html>
diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php
deleted file mode 100644
index 69f8cc39..00000000
--- a/framework/Wsat/pages/TWsatLogin.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * Description of Inicio
- *
- * @author daniels
- */
-class TWsatLogin extends TPage {
-
- public function login() {
- $config_pass = $this->getService()->getPassword();
- $user_pass = $this->password->Text;
-
- if ($user_pass === $config_pass) {
- $this->Session["wsat_password"] = $config_pass;
-
- $authManager = $this->Application->getModule('auth');
- $url = $authManager->ReturnUrl;
- if (empty($url)) {
- $url = $this->Service->constructUrl('TWsatHome');
- }
- $this->Response->redirect($url);
- } else {
- echo "user or pass wrong";
- }
- }
-
-}
-
-?> \ No newline at end of file
diff --git a/framework/Wsat/pages/TWsatScaffolding.page b/framework/Wsat/pages/TWsatScaffolding.page
deleted file mode 100644
index 42f78d09..00000000
--- a/framework/Wsat/pages/TWsatScaffolding.page
+++ /dev/null
@@ -1,3 +0,0 @@
-<com:TContent ID="Content">
- Scaffolding will be avaliable in Prado 3.4
-</com:TContent>
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php
deleted file mode 100644
index ce5860d3..00000000
--- a/framework/Wsat/pages/TWsatScaffolding.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/**
- * Description of Inicio
- *
- * @author daniels
- */
-Prado::using("System.Wsat.TWsatARGenerator");
-
-class TWsatScaffolding extends TPage {
-
-
-}
-
-?> \ No newline at end of file
diff --git a/framework/Wsat/pages/config.xml b/framework/Wsat/pages/config.xml
deleted file mode 100644
index 3ed8ea41..00000000
--- a/framework/Wsat/pages/config.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<configuration>
- <pages Theme="PradoSoft" MasterClass="System.Wsat.pages.layout.TWsatLayout" />
-</configuration> \ No newline at end of file
diff --git a/framework/Wsat/pages/layout/TWsatLayout.php b/framework/Wsat/pages/layout/TWsatLayout.php
deleted file mode 100644
index ce337265..00000000
--- a/framework/Wsat/pages/layout/TWsatLayout.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/**
- * Description of MainLayout
- *
- * @author daniels
- */
-class TWsatLayout extends TTemplateControl {
-
- public function onLoad($param) {
- parent::onLoad($param);
- $this->validateSecurity();
- }
-
- private function validateSecurity() {
- if ($this->Session["wsat_password"] !== $this->getService()->getPassword()) {
- if (!$this->getPage() instanceof TWsatLogin) {
- $url = $this->Service->constructUrl('TWsatLogin');
- $this->Response->redirect($url);
- }
- }
- }
-
- public function logout() {
- $this->Session["wsat_password"] = "";
- $url = $this->Service->constructUrl('TWsatLogin');
- $this->Response->redirect($url);
- }
-
-}
-
-?> \ No newline at end of file
diff --git a/framework/Wsat/pages/layout/TWsatLayout.tpl b/framework/Wsat/pages/layout/TWsatLayout.tpl
deleted file mode 100644
index d91ff333..00000000
--- a/framework/Wsat/pages/layout/TWsatLayout.tpl
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <com:THead Title="PRADO - WSAT">
- <com:TMetaTag HttpEquiv="Content-Type" Content="text/html; charset=utf-8" />
- <com:TMetaTag HttpEquiv="Content-Language" Content="en" />
- </com:THead>
-
- <body>
- <com:TForm>
-
- <div id="header">
- <a href="<%= $this->Service->DefaultPageUrl %>">
- <div class="logo"></div>
- <div style="float: left; margin-top: 17px">PRADO <br /> Web Site Administration Tool</div>
- </a>
- <div class="mantisbg"></div>
- <div style="clear: both"></div>
- </div>
-
- <div class="mainmenu">
- <div style="float: right"><com:TLinkButton Text="Logout" OnClick="logout" /></div>
- <div style="float: right"><com:THyperLink NavigateUrl="http://www.pradosoft.com/" Text="PradoSoft.com" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="float: right"><com:THyperLink NavigateUrl="<%= $this->Service->DefaultPageUrl %>" Text="Web App" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="float: right"><com:THyperLink NavigateUrl="http://www.pradosoft.com/forum/" Text="Help" Target="_blank" />&nbsp;|&nbsp;</div>
- <div style="clear: both"></div>
- </div>
-
- <div id="central_div">
- <div id="toc">
- <div class="topic">
- <div>Code Generation</div>
- <ul>
- <li><com:THyperLink NavigateUrl="<%= $this->Service->constructUrl('TWsatGenerateAR') %>" Text="AR Classes" /></li>
- <li><com:THyperLink NavigateUrl="<%= $this->Service->constructUrl('TWsatScaffolding') %>" Text="Scaffolding" /></li>
- </ul>
- </div>
- </div>
-
- <div id="content">
- <com:TContentPlaceHolder ID="Content" />
- </div>
-
- <div style="clear: both"></div>
- </div>
-
- <div id="footer">
- Copyright &copy; 2005-<%= date('Y') %> <a href="http://www.pradosoft.com">PradoSoft</a>.
- <br/><br/>
- <%= Prado::poweredByPrado() %>
- </div>
- </com:TForm>
- </body>
-</html> \ No newline at end of file