widgetAdminHTML Class Reference

Inheritance diagram for widgetAdminHTML:

advancedAdminHTML basicAdminHTML aliroBasicHTML aliroFriendlyBase

List of all members.

Public Member Functions

 tickBox ($object, $property)
 yesNoList ($object, $property)
 inputTop ($title, $redstar=false, $maxsize=0)
 blankRow ()
 fileInputBox ($title, $name, $value, $width, $tooltip=null)
 fileInputArea ($title, $maxsize, $name, $value, $rows, $cols, $editor=false, $tooltip=null)
 tickBoxField ($object, $property, $title)
 simpleTickBox ($title, $name, $checked=false)
 formStart ($title, $imagepath)
 listHeadingStart ($count)
 headingItem ($width, $title, $colspan=1)
 commonScripts ($edit_fields)
 listFormEnd ($pagecontrol=true)
 editFormEnd ($id)
 multiOptionList ($name, $title, $options, $current, $tooltip=null)
 tooltip ($text)


Detailed Description

Definition at line 248 of file basicAdminHTML.php.


Member Function Documentation

widgetAdminHTML::tickBox ( object,
property 
)

Definition at line 250 of file basicAdminHTML.php.

Referenced by tickBoxField().

00250                                           {
00251         if (is_object($object) AND $object->$property) $checked = "checked='checked'";
00252         else $checked = '';
00253         echo "<td><input type='checkbox' name='$property' value='1' $checked /></td>";
00254     }

widgetAdminHTML::yesNoList ( object,
property 
)

Definition at line 256 of file basicAdminHTML.php.

References mosHTML::makeOption(), and mosHTML::selectList().

00256                                             {
00257         $yesno[] = mosHTML::makeOption( 0, _NO );
00258         $yesno[] = mosHTML::makeOption( 1, _YES );
00259         if ($object) $default = $object->$property;
00260         else $default = 0;
00261         echo '<td valign="top">';
00262         echo mosHTML::selectList($yesno, $property, 'class="inputbox" size="1"', 'value', 'text', $default);;
00263         echo '</td></tr>';
00264     }

widgetAdminHTML::inputTop ( title,
redstar = false,
maxsize = 0 
)

Definition at line 266 of file basicAdminHTML.php.

References align.

Referenced by fileInputArea(), fileInputBox(), and simpleTickBox().

00266                                                            {
00267         ?>
00268         <tr>
00269             <td width="30%" valign="top" align="right">
00270                 <b><?php if ($redstar) echo '<font color="red">*</font>'; echo $title; if ($maxsize) echo "</b>&nbsp;<br /><i>$maxsize</i>&nbsp;"; ?></b>&nbsp;
00271             </td>
00272         <?php
00273     }

widgetAdminHTML::blankRow (  ) 

Definition at line 275 of file basicAdminHTML.php.

00275                          {
00276         ?>
00277             <tr><td>&nbsp;</td></tr>
00278         <?php
00279     }

widgetAdminHTML::fileInputBox ( title,
name,
value,
width,
tooltip = null 
)

Definition at line 281 of file basicAdminHTML.php.

References align, inputTop(), name, size, and tooltip().

00281                                                                          {
00282         $this->inputTop($title);
00283         ?>
00284             <td align="left" valign="top">
00285                 <input class="inputbox" type="text" name="<?php echo $name; ?>" size="<?php echo $width; ?>" value="<?php echo $value; ?>" />
00286                 <?php if ($tooltip) echo tooltip($tooltip); ?>
00287             </td>
00288         </tr>
00289         <?php
00290     }

widgetAdminHTML::fileInputArea ( title,
maxsize,
name,
value,
rows,
cols,
editor = false,
tooltip = null 
)

Definition at line 292 of file basicAdminHTML.php.

References aliroEditor::getInstance(), inputTop(), and tooltip().

00292                                                                                                          {
00293         $this->inputTop ($title, false, $maxsize);
00294         echo '<td valign="top">';
00295         if ($editor) {
00296             $editorclass = aliroEditor::getInstance();
00297             $editorclass->editorArea( 'description', $value, $name, 500, 200, $rows, $cols );
00298         }
00299         else echo "<textarea class='inputbox' name='$name' rows='$rows' cols='$cols'>$value</textarea>";
00300         if ($tooltip) echo tooltip($tooltip);
00301         echo '</td></tr>';
00302     }

widgetAdminHTML::tickBoxField ( object,
property,
title 
)

Definition at line 304 of file basicAdminHTML.php.

References align, and tickBox().

00304                                                        {
00305         ?>
00306         <tr>
00307             <td width="30%" valign="top" align="right">
00308                 <b><?php echo $title; ?></b>&nbsp;
00309             </td>
00310         <?php
00311         $this->tickBox($object,$property);
00312         echo '</tr>';
00313     }

widgetAdminHTML::simpleTickBox ( title,
name,
checked = false 
)

Definition at line 315 of file basicAdminHTML.php.

References inputTop(), and name.

00315                                                            {
00316         $this->inputTop($title);
00317         if ($checked) $check = 'checked="checked"';
00318         else $check = '';
00319         ?>
00320             <td>
00321                 <input type="checkbox" name="<?php echo $name; ?>" value="1" <?php echo $check; ?> />
00322             </td>
00323         </tr>
00324         <?php
00325     }

widgetAdminHTML::formStart ( title,
imagepath 
)

Definition at line 326 of file basicAdminHTML.php.

References name.

00326                                             {
00327         ?>
00328         <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
00329         <script type="text/javascript" src="../includes/js/overlib_mini.js"></script>
00330         <form action="index2.php" method="post" name="adminForm">
00331         <table cellpadding="4" cellspacing="0" border="0" width="100%">
00332         <tr>
00333             <td width="100%" colspan="4">
00334             <div class="title">
00335             <img src="<?php echo $imagepath; ?>" alt="<?php echo $title; ?>" />
00336             <span class="sectionname">&nbsp;<?php echo $title; ?></span>
00337             </div>
00338             </td>
00339         </tr>
00340         <?php
00341     }

widgetAdminHTML::listHeadingStart ( count  ) 

Definition at line 343 of file basicAdminHTML.php.

References align, and name.

00343                                        {
00344         ?>
00345         <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
00346             <tr>
00347                 <th width="5" align="left">
00348                     <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo $count; ?>);" />
00349                 </th>
00350         <?php
00351     }

widgetAdminHTML::headingItem ( width,
title,
colspan = 1 
)

Definition at line 353 of file basicAdminHTML.php.

00353                                                       {
00354         if ($colspan > 1) $colcode = " colspan=\"$colspan\"";
00355         else $colcode = '';
00356         echo "<th width=\"$width\" align=\"left\"$colcode>$title</th>";
00357     }

widgetAdminHTML::commonScripts ( edit_fields  ) 

Definition at line 359 of file basicAdminHTML.php.

References aliroEditor::getInstance().

00359                                           {
00360         ?>
00361         <script type="text/javascript">
00362         function submitbutton(pressbutton) {
00363                 <?php
00364                 $editor = aliroEditor::getInstance();
00365                 if (is_array($edit_fields)) foreach ($edit_fields as $field) $editor->getEditorContents( $field, $field );
00366                 else $editor->getEditorContents ($edit_fields, $edit_fields);
00367                 ?>
00368                 submitform( pressbutton );
00369         }
00370         </script>
00371         <?php
00372     }

widgetAdminHTML::listFormEnd ( pagecontrol = true  ) 

Definition at line 374 of file basicAdminHTML.php.

References align, and name.

00374                                              {
00375         if ($pagecontrol) {
00376             ?>
00377             <tr>
00378                 <th align="center" colspan="10"> <?php echo $this->pageNav->writePagesLinks(); ?></th>
00379             </tr>
00380             <tr>
00381                 <td align="center" colspan="10"> <?php echo $this->pageNav->writePagesCounter(); ?></td>
00382             </tr>
00383             <?php
00384         }
00385         ?>
00386         </table>
00387         <div>
00388         <?php echo $this->optionline; ?>
00389         <input type="hidden" name="task" value="" />
00390         <input type="hidden" name="act" value="<?php echo $this->act; ?>" />
00391         <input type="hidden" name="boxchecked" value="0" />
00392         </div>
00393         </form>
00394         <?php
00395     }

widgetAdminHTML::editFormEnd ( id  ) 

Definition at line 397 of file basicAdminHTML.php.

References name.

00397                                {
00398         echo $this->optionline;
00399         ?>
00400         </table>
00401         <div>
00402         <input type="hidden" name="cid" value="<?php echo $id; ?>" />
00403         <input type="hidden" name="task" value="" />
00404         <input type="hidden" name="act" value="<?php echo $this->act; ?>" />
00405         </div>
00406         </form>
00407         <?php
00408     }

widgetAdminHTML::multiOptionList ( name,
title,
options,
current,
tooltip = null 
)

Definition at line 410 of file basicAdminHTML.php.

References align.

00410                                                                                 {
00411         $alternatives = explode(',',$options);
00412         $already = explode(',', $current);
00413         ?>
00414         <tr>
00415         <td width="30%" valign="top" align="right">
00416         <b><?php echo $title; ?></b>&nbsp;
00417         </td>
00418         <td valign="top">
00419         <?php
00420         foreach ($alternatives as $one) {
00421             if (in_array($one,$already)) $mark = 'checked="checked"';
00422             else $mark = '';
00423             $value = $name.'_'.$one;
00424             echo "<input type=\"checkbox\" name=\"$value\" $mark />$one";
00425         }
00426         if ($tooltip) echo '&nbsp;'.tooltip($tooltip);
00427         echo '</td></tr>';
00428     }

widgetAdminHTML::tooltip ( text  ) 

Definition at line 430 of file basicAdminHTML.php.

Referenced by fileInputArea(), and fileInputBox().

00430                              {
00431         return '<a href="javascript:void(0)"  onmouseover="return escape('."'".$text."'".')">'.aliroCore::get('mosConfig_live_site').'/includes/js/ThemeOffice/tooltip.png</a>';
00432     }


The documentation for this class was generated from the following file:

Generated on Wed May 14 13:02:04 2008 for ALIRO by  doxygen 1.5.5