Changeset 9163
- Timestamp:
- Nov 15, 2008, 5:52:55 PM (12 years ago)
- Location:
- OpenPNE3/branches/goto_1.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/branches/goto_1.2/apps/mobile_frontend/templates/_partsLogin.php
r8787 r9163 6 6 <tr><td bgcolor="#EEEEFF"> 7 7 <form action="<?php echo $link_to ?>" method="post"<?php if($form->isUtn()): ?> utn<?php endif; ?>> 8 <?php foreach ($form as $key => $row) : ?> 9 <?php if (!$row->isHidden()) : ?> 10 <?php echo $row->renderLabel(); ?><br> 11 <?php echo $row->render(); ?><br> 12 <?php endif; ?> 13 <?php endforeach; ?> 8 <?php echo $form ?> 14 9 <center> 15 10 <input type="submit" value="ログイン"> -
OpenPNE3/branches/goto_1.2/lib/filter/sfOpenPNEExecutionFilter.class.php
r8872 r9163 16 16 foreach ($viewAttributes as $key => $attribute) 17 17 { 18 if ($attribute instanceof sfForm) 19 { 20 $attribute->getWidgetSchema()->setFormFormatterName('mobile'); 21 $viewAttributes[$key] = $attribute; 22 } 18 $this->setFormFormatterForMobile($attribute); 19 $viewAttributes[$key] = $attribute; 23 20 } 24 21 } … … 26 23 parent::executeView($moduleName, $actionName, $viewName, $viewAttributes); 27 24 } 25 26 protected function setFormFormatterForMobile(&$form) 27 { 28 if (is_array($form)) 29 { 30 array_map(array($this, 'setFormFormatterForMobile'), $form); 31 } elseif ($form instanceof sfForm) 32 { 33 $form->getWidgetSchema()->setFormFormatterName('mobile'); 34 } 35 } 28 36 } -
OpenPNE3/branches/goto_1.2/lib/form/sfOpenPNEAuthForm.class.php
r9157 r9163 8 8 * @author Kousuke Ebihara <ebihara@tejimaya.com> 9 9 */ 10 abstract class sfOpenPNEAuthForm extends sfForm implements IteratorAggregate10 abstract class sfOpenPNEAuthForm extends sfForm 11 11 { 12 12 public
Note: See TracChangeset
for help on using the changeset viewer.