Permalink
Browse files

cleanups and moves

  • Loading branch information...
1 parent 610083d commit a545d732577c5039754bf10da7a49a1e9e3b14b9 @romaninsh romaninsh committed Jul 23, 2012
View
@@ -28,9 +28,10 @@ function init(){
'gui'=>array(
'User Interface',
'form'=>'Forms',
+ 'formstyle'=>'Form Styling',
'grid'=>'Grids',
- 'buttons'=>'Buttons',
- 'upload'=>'File Uploads',
+ //'buttons'=>'Buttons',
+ //'upload'=>'File Uploads',
),
'layouts'=>array(
'Changind Layout and Design',
@@ -40,7 +41,9 @@ function init(){
'interaction'=>array(
'Interaction and JavaScript',
'reloading'=>'Dynamic pages and AJAX',
+ 'binding'=>'JavaScript Bindings',
),
+ /*
'features'=>array(
'Advanced Features',
'custom-form-fields'=>'Custom Form Fields',
@@ -66,6 +69,7 @@ function init(){
'password-strength'=>'Testing Password Strength',
'jqgrid'=>'Integration with jqGrid',
),
+ */
'old'=>array(
'Older Examples',
'50employees'=>'50employees',
@@ -79,13 +83,12 @@ function init(){
'facebook'=>'facebook',
'hangman'=>'hangman',
'hello'=>'hello',
- 'hybrid'=>'hybrid',
'image'=>'image',
- 'index'=>'index',
'infiniteadd1'=>'infiniteadd1',
'issue12'=>'issue12',
'jsonac'=>'jsonac',
'layoutswitch'=>'layoutswitch',
+ /*
'metatags'=>'metatags',
'multiupload'=>'multiupload',
'myformat'=>'myformat',
@@ -101,6 +104,7 @@ function init(){
'stackcrud'=>'stackcrud',
'tmail'=>'tmail',
''=>'',
+ */
)
)));
}
@@ -0,0 +1,7 @@
+<?php
+class page_layouts_playground extends Page {
+ function init(){
+ parent::init();
+ $this->api->redirect('playground');
+ }
+}
@@ -1,5 +1,5 @@
<?php
-class page_50employees extends Page {
+class page_old_50employees extends Page {
public $descr='The other day I got asked: "I have lots of employees to enter. What\'s the fastest name to enter them?".
We can certainly build a form with lots of fields and the make it produce many records when it\'s submitted.';
function init(){
@@ -1,5 +1,5 @@
<?php
-class page_50employees2 extends Page {
+class page_old_50employees2 extends Page {
public $descr='After I created <a href="/codepad/50employees">50employees example</a> next I was asked what if we want to change
salaries of the employees who already in the database? This example demonstrates use of autocomplete fields and also
how you can add dictionary for a reference field. This allows you to automatically fill other fields when value is
@@ -1,11 +1,13 @@
<?php
-class page_autocomplete extends Page {
+class page_old_autocomplete extends Page {
public $descr='Selecting element in autocomplete field then editing loaded data (or creating new one if it wasn\'t
selected can be implemented by using two forms. The first form only allows you to change the name of the record,
then it submits itself and reloads second form.';
function init(){
parent::init();
+ $this->add('View_Error')->set('The autocomplete is going reconstruction and will re-emerge as new add-on');
+
$form=$this->add('Form');
$name=$form->addField('autocomplete','name','Employee')->setModel('Employee');
$form->getElement('name')->js('change',$form->js()->submit());
@@ -1,5 +1,5 @@
<?php
-class page_buttonpushing extends Page {
+class page_old_buttonpushing extends Page {
public $descr='Sample demonstration on how to use buttons and how to use events. First button relads itself when clicked.
Second button perfoms animation withotu consulting server. Third button send request to server to receive instructios
to do the animation. Those are 3 major interaction styles you\'ll use in your application.';
@@ -1,5 +1,5 @@
<?php
-class page_columns extends Page {
+class page_old_columns extends Page {
public $descr='Design of complex forms with a non-standard layout often can be done with existing components of Agile
Toolkit. In the form below you will see a lot of techniques in action to perform AJAX reuests, insert non-standard
fields into the form and interraction between multiple forms';
@@ -1,5 +1,5 @@
<?php
-class page_contact extends Page {
+class page_old_contact extends Page {
public $descr='How hard should it be to create a contact form? With Agile Toolkit it\'s super easy. Here is your only step to creating it.';
function init(){
parent::init();
@@ -1,5 +1,5 @@
<?php
-class page_dragaction extends Page {
+class page_old_dragaction extends Page {
public $descr='Using custom view with a custom template to display your own HTML and even enable drag and drop. Agile
Toolkit helps you even if you build your own components. Here we also specify a custom JavaScript which uses
univ().ajaxec() to send data back to the server.';
@@ -1,5 +1,5 @@
<?php
-class page_editablef extends Page {
+class page_old_editablef extends Page {
public $descr='Grid inline editing with row reloading. Possibly the less known feature of Grid is it\'s ability to use
inline editing. You can enable this by using "inline" column type. There is a limitation of editing only one field at
a time. For more complex edits, you can use expanders';
@@ -1,6 +1,6 @@
<?php
-class page_facebook extends Page {
+class page_old_facebook extends Page {
public $descr = 'An example of Facebook authorization integration and profile data fetching';
function init(){
parent::init();
@@ -1,5 +1,5 @@
<?php
-class page_hangman extends Page {
+class page_old_hangman extends Page {
public $descr='Hangman implementation in AJAX within just 50 lines of code is amazing way to show efficiency of
development in Agile Toolkit. This example demonstrates object-level session control and AJAX reloading. Objects in
Agile Toolkit are independent and even placing 2 games on same page won\'t break a thing!';
@@ -1,5 +1,5 @@
<?php
-class page_hello extends Page {
+class page_old_hello extends Page {
public $descr='"Hello World" in Agile Toolkit. That\'s as simple as adding a HelloWorld object. So to give you a bonus,
we have added a Text object which can be used with any text message.';
function init(){
@@ -1,5 +1,5 @@
<?php
-class page_image extends Page {
+class page_old_image extends Page {
public $descr='Uploading images, storing them safely, creating thumbnail. This used to be a lot of work but not with
Agile Toolkit. Filestore_Image model extends on the "File" by automatically generating thumbnails when needed.
You can see that each file you upload creates two files in filestore.';
@@ -1,5 +1,5 @@
<?php
-class page_infiniteadd1 extends Page {
+class page_old_infiniteadd1 extends Page {
public $descr='Entering data continiously using only the keyboard. This have been challenge for many web developers. Data
also needs to be properly saved and additional fields needs to become available as needed. Try entering name, using
tab key to go into salary, entering salary, then using tab key to move further.';
@@ -1,5 +1,5 @@
<?php
-class page_issue12 extends Page {
+class page_old_issue12 extends Page {
public $descr='Initially test-case for <a href="https://github.com/atk4/atk4/issues/12">issue #12</a> this example
demonstrate use of QuickSearch for grid';
function init(){
@@ -1,5 +1,5 @@
<?php
-class page_jsonac extends Page {
+class page_old_jsonac extends Page {
public $descr='Start typing employee name and a custom-build autocomplete field will help you finish it';
function init(){
parent::init();
@@ -1,5 +1,5 @@
<?php
-class page_layoutswitch extends Page {
+class page_old_layoutswitch extends Page {
public $descr='Changing template of an object based on conditions. Function defaultTemplate() is called before init() but
you can put some code in there if you want to switch between templates conditionally. Additionally in this example I
have added a cool effect when the page is being re-loaded';
View
@@ -0,0 +1,8 @@
+<?php
+class page_reloading extends Page {
+ function init(){
+ parent::init();
+ $this->api->redirect('interaction/reloading');
+
+ }
+}
@@ -76,7 +76,7 @@
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
@@ -0,0 +1,14 @@
+<?headers?>
+<?/headers?>
+<?subject?>Product Purchase Confirmation<?/?>
+<?body?>
+
+Hi <?$name?>
+
+Thank you for purchasing <?$product?>.
+
+To receive support you should register by clicking on the following link:
+<?$link?>
+
+<?$sign?>
+<?/body?>

0 comments on commit a545d73

Please sign in to comment.