public static function user(&$row, $lists, $option) { CLMViewUsers::setUserToolbar(); JRequest::setVar('hidemainmenu', 1); JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'extrainfo'); ?> <script language="javascript" type="text/javascript"> Joomla.submitbutton = function (pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } if (form.pid.value =="0") { // do field validation if (form.name.value == "") { alert( "<?php echo JText::_('USER_NAME_ANGEBEN', true); ?> " ); } else if (form.username.value == "") { alert( "<?php echo JText::_('USER_USER_ANGEBEN', true); ?> " ); } else if (form.email.value == "") { alert( "<?php echo JText::_('USER_MAIL_ANGEBEN', true); ?> " ); } else if ( getSelectedValue('adminForm','usertype') == "" ) { alert( "<?php echo JText::_('USER_FUNKTION_AUSWAEHLEN', true); ?> " ); } else if ( getSelectedValue('adminForm','zps') == 0 ) { alert( "<?php echo JText::_('USER_VEREIN_AUSWAEHLEN', true); ?> " ); } else { submitform( pressbutton ); } } else { // do field validation if ( getSelectedValue('adminForm','usertype') == "" ) { alert( "<?php echo JText::_('USER_FUNKTION_AUSWAEHLEN', true); ?> " ); } else if ( getSelectedValue('adminForm','zps') == 0 ) { alert( "<?php echo JText::_('USER_VEREIN_AUSWAEHLEN', true); ?> " ); } else if ( getSelectedValue('adminForm','sid') == 0 ) { alert( "<?php echo JText::_('USER_SAISON_AUSWAEHLEN', true); ?> " ); } else { submitform( pressbutton ); } } } </script> <form action="index.php" method="post" name="adminForm" id="adminForm"> <div class="width-50 fltlft"> <fieldset class="adminform"> <legend><?php echo JText::_('USER_DETAILS'); ?> </legend> <table class="admintable"> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="name"><?php echo JText::_('USER_NAME') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="name" id="name" size="30" maxlength="60" value="<?php echo $row->name; ?> " /><?php echo JText::_('USER_EXAMPLE_NAME'); ?> </td> </tr> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="username"><?php echo JText::_('USER') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="username" id="username" size="30" maxlength="60" value="<?php echo $row->username; ?> " /><?php echo JText::_('USER_EXAMPLE_USERNAME'); ?> </td> </tr> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="name"><?php echo JText::_('USER_MAIL') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="email" id="email" size="30" maxlength="60" value="<?php echo $row->email; ?> " /><?php echo JText::_('USER_EXAMPLE_MAIL'); ?> </td> </tr> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="name"><?php echo JText::_('USER_TELEFON') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="tel_fest" id="tel_fest" size="30" maxlength="60" value="<?php echo $row->tel_fest; ?> " /><?php echo JText::_('USER_EXAMPLE_PHONE'); ?> </td> </tr> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="name"><?php echo JText::_('USER_MOBILE') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="tel_mobil" id="tel_mobil" size="30" maxlength="60" value="<?php echo $row->tel_mobil; ?> " /><?php echo JText::_('USER_EXAMPLE_MOBILE'); ?> </td> </tr> <tr> <td class="key" nowrap="nowrap"> <label for="usertype"><?php echo JText::_('USER_FUNCTION') . ' : '; ?> </label> </td> <td> <?php echo $lists['usertype']; ?> </td> </tr> <tr> <td class="key" nowrap="nowrap"><label for="verein"><?php echo JText::_('VEREIN') . ' : '; ?> </label> </td> <td> <?php echo $lists['verein']; ?> </td> </tr> <tr> <td class="key" width="20%" nowrap="nowrap"> <label for="name"><?php echo JText::_('USER_MGNR') . ' : '; ?> </label> </td> <td> <input class="inputbox" type="text" name="mglnr" id="mglnr" size="30" maxlength="6" value="<?php echo $row->mglnr; ?> " /><?php echo JText::_('USER_EXAMPLE_MGNR'); ?> </td> </tr> <tr> <td class="key" nowrap="nowrap"><label for="sid"><?php echo JText::_('SAISON') . ' : '; ?> </label> </td> <td> <?php echo $lists['saison']; ?> </td> </tr> <tr> <td class="key" nowrap="nowrap"><label for="published"><?php echo JText::_('JPUBLISHED') . ' : '; ?> </label> </td> <td><fieldset class="radio"> <?php echo $lists['published']; ?> </fieldset></td> </tr> <tr> <!-- <td class="key" nowrap="nowrap"><label for="aktive"><?php echo JText::_('USER_MAIL') . ' : '; ?> </label> </td> <td> <?php //echo $lists['aktive']; ?> </td> </tr> --> </table> </fieldset> </div> <div class="width-50 fltrt"> <fieldset class="adminform"> <legend><?php echo JText::_('REMARKS'); ?> </legend> <table class="adminlist"> <legend><?php echo JText::_('REMARKS_PUBLIC'); ?> </legend> <br> <tr> <td width="100%" valign="top"> <textarea class="inputbox" name="bemerkungen" id="bemerkungen" cols="40" rows="2" style="width:90%"><?php echo str_replace('&', '&', $row->bemerkungen); ?> </textarea> </td> </tr> </table> <table class="adminlist"> <tr><legend><?php echo JText::_('REMARKS_INTERNAL'); ?> </legend> <br> <td width="100%" valign="top"> <textarea class="inputbox" name="bem_int" id="bem_int" cols="40" rows="2" style="width:90%"><?php echo str_replace('&', '&', $row->bem_int); ?> </textarea> </td> </tr> </table> </fieldset> <?php if (JRequest::getVar('task') == 'add') { ?> <br> <fieldset class="adminform"> <table class="adminlist"> <legend><?php echo JText::_('USER_LINE01'); ?> </legend> <?php echo JText::_('USER_LINE02'); ?> <br><?php echo JText::_('USER_LINE03'); ?> . <br><br> <tr> <td width="100%" valign="top"> <?php echo $lists['jid']; ?> </td> </tr> </table> </fieldset> <?php } else { ?> <input type="hidden" name="pid" value="0" /> <?php } ?> </div> <div class="clr"></div> <input type="hidden" name="section" value="users" /> <input type="hidden" name="option" value="com_clm" /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="jid" id="jid" value="<?php echo $row->jid; ?> " /> <input type="hidden" name="aktive" value="<?php echo $row->aktive; ?> " /> <input type="hidden" name="script_task" value="<?php echo JRequest::getVar('task'); ?> " /> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> <?php }