Browse files

cleanups and moves

  • Loading branch information...
1 parent 610083d commit a545d732577c5039754bf10da7a49a1e9e3b14b9 @romaninsh romaninsh committed Jul 23, 2012
@@ -28,9 +28,10 @@ function init(){
'User Interface',
+ 'formstyle'=>'Form Styling',
- 'buttons'=>'Buttons',
- 'upload'=>'File Uploads',
+ //'buttons'=>'Buttons',
+ //'upload'=>'File Uploads',
'Changind Layout and Design',
@@ -40,7 +41,9 @@ function init(){
'Interaction and JavaScript',
'reloading'=>'Dynamic pages and AJAX',
+ 'binding'=>'JavaScript Bindings',
+ /*
'Advanced Features',
'custom-form-fields'=>'Custom Form Fields',
@@ -66,6 +69,7 @@ function init(){
'password-strength'=>'Testing Password Strength',
'jqgrid'=>'Integration with jqGrid',
+ */
'Older Examples',
@@ -79,13 +83,12 @@ function init(){
- 'hybrid'=>'hybrid',
- 'index'=>'index',
+ /*
@@ -101,6 +104,7 @@ function init(){
+ */
@@ -0,0 +1,7 @@
+class page_layouts_playground extends Page {
+ function init(){
+ parent::init();
+ $this->api->redirect('playground');
+ }
@@ -1,5 +1,5 @@
-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 @@
-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 @@
-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(){
+ $this->add('View_Error')->set('The autocomplete is going reconstruction and will re-emerge as new add-on');
@@ -1,5 +1,5 @@
-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 @@
-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 @@
-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(){
@@ -1,5 +1,5 @@
-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 @@
-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 @@
-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(){
@@ -1,5 +1,5 @@
-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 @@
-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 @@
-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 @@
-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 @@
-class page_issue12 extends Page {
+class page_old_issue12 extends Page {
public $descr='Initially test-case for <a href="">issue #12</a> this example
demonstrate use of QuickSearch for grid';
function init(){
@@ -1,5 +1,5 @@
-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(){
@@ -1,5 +1,5 @@
-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';
@@ -0,0 +1,8 @@
+class page_reloading extends Page {
+ function init(){
+ parent::init();
+ $this->api->redirect('interaction/reloading');
+ }
@@ -76,7 +76,7 @@
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '';
+ dsq.src = '//' + disqus_shortname + '';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
@@ -0,0 +1,14 @@
+<?subject?>Product Purchase Confirmation<?/?>
+Hi <?$name?>
+Thank you for purchasing <?$product?>.
+To receive support you should register by clicking on the following link:

0 comments on commit a545d73

Please sign in to comment.