<?php 
include_http_metas();
include_metas();
include_title();
?>
</head>

<body style="background-image: url(/appFlowerStudioPlugin/images/bg/backgrond_3.2.2.jpg);background-position: 50% 50%;background-repeat: no-repeat;">
    <!-- Page Frame -->
<?php 
$layout = new afExtjsSfGuardLayout();
/**
 * EXTJS REQUEST PASSWORD FORM
 */
$form = new afExtjsForm(array('action' => url_for('/afsAuthorize/passwordRequest')));
$fieldset = $form->startFieldset(array('legend' => 'Receive your login details by email'));
$columns = $fieldset->startColumns(array("columnWidth" => 1));
$col = $columns->startColumn(array("columnWidth" => 1));
$username = new afExtjsFieldInput($col, array('name' => 'email', 'label' => 'Email', 'value' => $sf_params->get('email'), 'help' => "Enter your email", 'comment' => 'write your email', 'width' => '150'));
$columns->endColumn($col);
$fieldset->endColumns($columns);
$form->endFieldset($fieldset);
new afExtjsSubmitButton($form, array('action' => url_for('/afsAuthorize/passwordRequest')));
new afExtjsLinkButton($form, array('url' => url_for('/afsAuthorize/index'), 'label' => 'Go to Login', 'load' => 'page'));
$form->end();
$layout->addItem('center', $form);
$tools = new afExtjsTools();
//$tools->addItem(array('id'=>'gear','handler'=>array('source'=>"Ext.Msg.alert('Message', 'The Settings tool was clicked.');")));
//$tools->addItem(array('id'=>'close','handler'=>array('parameters'=>'e,target,panel','source'=>"panel.ownerCt.remove(panel, true);")));
$layout->addCenterComponent($tools, array('title' => 'Request Password'));
$layout->end();
Exemplo n.º 2
0
new afExtjsFieldDoubleTree($fieldset, array('name' => 'my_double_tree', 'label' => 'My double tree', 'help' => 'test help', 'comment' => 'comment on double tree', 'state' => 'editable', 'fromLegend' => 'Options grouped', 'toLegend' => 'Selected grouped', 'options' => $double_tree_options, 'selected' => $double_tree_selected));
new afExtjsFieldInput($fieldset, array('name' => 'my_name', 'label' => 'My Name', 'value' => 'RaduX', 'help' => "'+field.value+'", 'comment' => 'comment on the upper field', 'handlers' => array('change' => array('parameters' => 'field', 'source' => 'alert(field.value);'))));
new afExtjsFieldMultiCombo($fieldset, array('name' => 'my_multi_combo', 'label' => 'My multi combo', 'help' => "multi combo box", 'comment' => 'comment for multi combo', 'options' => array('1' => 'Value 1', '2' => 'Value 2', '3' => 'Value 3'), 'selected' => array('1', '2'), 'state' => 'editable', 'clear' => true));
$form0->endFieldset($fieldset);
new afExtjsSubmitButton($form0, array('action' => '/interface/test'));
new afExtjsResetButton($form0);
new afExtjsButton($form0, array('label' => 'Just a normal button', 'handlers' => array('click' => array('parameters' => 'field,event', 'source' => 'alert(field.name);'))));
new afExtjsLinkButton($form0, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk', 'icon' => '/images/famfamfam/cancel.png'));
new afExtjsLinkButton($form0, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk'));
$form0->end();
/**
 * A FORM IN THE COLUMN
 */
$form = new afExtjsForm(array('idxml' => 'interface/someform', 'action' => '/interface/test', 'portal' => true, 'tools' => $tools));
$form->addHelp($html);
$fieldset = $form->startFieldset(array('legend' => 'Fieldset 1', 'collapsed' => false));
/**
 * combo with button, NEW CUSTOM WIDGET FIELD, complex behaviour
 * Explanations:
 * button:text => the button text
 * button:icon => the button icon
 * 
 * window => the window that appears on button click
 * window:title => the window title
 * window:component => the window inner component, here is a form
 * window:class => the model class from where to retrieve new data for combo, after window close
 * window:method => the model method from where to retrieve new data for combo, after window close
 */
//$combo=new afExtjsFieldCombo($fieldset,array('name'=>'my_combo_button','label'=>'My combo button','help'=>"combo box with button",'comment'=>'comment for combo w button','options'=>array('a'=>'Value A','b'=>'Value B'),'selected'=>'b','button'=>array('text'=>'Trigger','icon'=>'/images/famfamfam/cancel.png'),'window'=>array('title'=>'Window Title','component'=>$form0,'className'=>'ServerPeer','methodName'=>'getAllAsOptions')));
/**
 * combo with autocomplete
Exemplo n.º 3
0
/**
 * CHANGED TO a, b and c values, to see that selected works fine
 */
$multicombo = new afExtjsFieldMultiCombo($fieldset1, array('name' => 'my_multi_combo', 'label' => 'My multi combo', 'help' => "multi combo box", 'comment' => 'comment for multi combo', 'options' => array('a' => 'Value A', 'b' => 'Value B', 'c' => 'Value C'), 'selected' => array('b', 'c'), 'state' => 'editable', 'clear' => true));
$form->endFieldset($fieldset1);
new afExtjsSubmitButton($form, array('action' => '/interface/test'));
new afExtjsResetButton($form);
new afExtjsButton($form, array('label' => 'Just a normal button', 'handlers' => array('click' => array('parameters' => 'field,event', 'source' => 'alert(field.name);'))));
new afExtjsLinkButton($form, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk', 'icon' => '/images/famfamfam/cancel.png'));
new afExtjsLinkButton($form, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk'));
$form->end();
$layout->addItem('center', $form);
/**
 * SECOND FORM
 */
$form1 = new afExtjsForm(array('action' => '/interface/test'));
$fieldset = $form1->startFieldset(array('legend' => 'Fieldset from second form'));
new afExtjsFieldMultiCombo($fieldset, array('name' => 'my_multi_combo', 'label' => 'My multi combo', 'help' => "multi combo box", 'comment' => 'comment for multi combo', 'options' => array('1' => 'Value 1', '2' => 'Value 2', '3' => 'Value 3'), 'selected' => array('1', '2'), 'state' => 'editable', 'clear' => true));
$form1->endFieldset($fieldset);
new afExtjsSubmitButton($form1, array('action' => '/interface/test'));
new afExtjsResetButton($form1);
new afExtjsButton($form1, array('label' => 'Just a normal button', 'handlers' => array('click' => array('parameters' => 'field,event', 'source' => 'alert(field.name);'))));
new afExtjsLinkButton($form1, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk', 'icon' => '/images/famfamfam/cancel.png'));
new afExtjsLinkButton($form1, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk'));
$form1->end();
$layout->addItem('center', $form1);
$tools = new afExtjsTools();
$tools->addItem(array('id' => 'gear', 'handler' => array('source' => "Ext.Msg.alert('Message', 'The Settings tool was clicked.');")));
$tools->addItem(array('id' => 'close', 'handler' => array('parameters' => 'e,target,panel', 'source' => "panel.ownerCt.remove(panel, true);")));
$layout->addCenterComponent($tools, array('title' => 'Forms'));
$layout->end();
 * action1
 */
$actions->addAction(array('iconCls' => 'icon-edit-record', 'tooltip' => 'Edit'));
/**
 * action2
 */
$actions->addAction(array('iconCls' => 'icon-minus', 'tooltip' => 'Delete'));
$grid->endRowActions($actions);
new afExtjsLinkButton($grid, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk'));
new afExtjsLinkButton($grid, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk', 'icon' => '/images/famfamfam/cancel.png'));
$grid->end();
$column1->addItem($grid);
/**
 * A FORM IN THE COLUMN
 */
$form = new afExtjsForm(array('action' => '/interface/test', 'title' => 'Form', 'portal' => true, 'tools' => $tools));
$fieldset = $form->startFieldset(array('legend' => 'Fieldset 1'));
$input = new afExtjsFieldInput($fieldset, array('name' => 'my_name', 'label' => 'My Name', 'value' => 'Radu', 'help' => "'+field.value+'", 'comment' => 'comment on the upper field', 'handlers' => array('change' => array('parameters' => 'field', 'source' => 'alert(field.value);'))));
$textarea = new afExtjsFieldTextarea($fieldset, array('name' => 'my_textarea', 'label' => 'My Textarea', 'value' => 'textarea', 'comment' => 'my textarea comment', 'rich' => true));
$password = new afExtjsFieldPassword($fieldset, array('name' => 'my_pass', 'label' => 'My Pass', 'value' => 'Radu', 'help' => "password", 'comment' => 'comment on the upper field'));
$form->endFieldset($fieldset);
new afExtjsSubmitButton($form, array('action' => '/interface/test'));
new afExtjsResetButton($form);
new afExtjsButton($form, array('label' => 'Just a normal button', 'handlers' => array('click' => array('parameters' => 'field,event', 'source' => 'alert(field.name);'))));
new afExtjsLinkButton($form, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk', 'icon' => '/images/famfamfam/cancel.png'));
new afExtjsLinkButton($form, array('label' => 'www.immune.dk', 'url' => 'http://www.immune.dk'));
$form->end();
$column1->addItem($form);
$column1->addItem(array('title' => 'Panel 1', 'tools' => $tools, 'html' => 'test'));
$layout->endColumn($column1);
$layout->end();
Exemplo n.º 5
0
?>
</head>

<body style="background-image: url(/appFlowerStudioPlugin/images/bg/backgrond_3.2.2.jpg);background-position: 50% 50%;background-repeat: no-repeat;">
    <!-- Page Frame -->
    
    <script type="text/javascript" src="/appFlowerStudioPlugin/js/afStudio.js"></script> 
    <script type="text/javascript" src="/appFlowerStudioPlugin/js/components/users/afStudio.UserWindow.js"></script>
    
<?php 
$layout = new afExtjsSfGuardLayout();
/**
 * EXTJS SIGN IN FORM
 */
$form = new afExtjsForm(array('action' => '/afsAuthorize/signin', "columnWidth" => ".88"));
$fieldset = $form->startFieldset(array('legend' => 'Login', 'collapsible' => 'false'));
$columns = $fieldset->startColumns(array("columnWidth" => 1));
$col = $columns->startColumn(array("columnWidth" => 1));
$username = new afExtjsFieldInput($col, array('name' => 'signin[username]', 'label' => 'Username', 'value' => '', 'help' => "Enter the username", 'width' => '150'));
$password = new afExtjsFieldPassword($col, array('name' => 'signin[password]', 'label' => 'Password', 'value' => '', 'help' => "Enter the password", 'width' => '150'));
$captchaEnabled = in_array('sfCaptchaPlugin', sfProjectConfiguration::getActive()->getPlugins());
$remember = new afExtjsFieldCheckbox($col, array('name' => 'signin[remember]', 'label' => 'Remember', 'checked' => true));
$columns->endColumn($col);
$fieldset->endColumns($columns);
$form->endFieldset($fieldset);
new afExtjsSubmitButton($form, array('action' => '/afsAuthorize/signin'));
new afExtjsLinkButton($form, array('url' => url_for('/afsAuthorize/passwordRequest'), 'load' => 'page', 'label' => 'Forgot your password?', 'icon' => '/appFlowerStudioPlugin/images/email_go.png'));
$form->end();
$layout->addItem('center', array("columnWidth" => ".12", "frame" => false, "height" => 167, "html" => "<a href='http://www.appflower.com'><img src='/appFlowerPlugin/images/vertical_logo.png'></a>"));
$layout->addItem('center', $form);
$tools = new afExtjsTools();