Location: PHPKode > projects > WebConference Plugin for Moodle > webconference/config.html
<?php // $Id: config.html,v 1.0 2008/12/22 20:20:28 mlazar Exp $

/////////////////////////////////////////////////////////////////////////////////
///  Configuration of WebConference module
/////////////////////////////////////////////////////////////////////////////////
	require_js(array("yui_yahoo","yui_dom","yui_selector","yui_event","yui_dom-event","yui_element","yui_logger"));
?>
<center><a href='../mod/webconference/configusers.php?sesskey=<?php echo $USER->sesskey ?>'><?php print_string('assignwcseats','webconference') ?> </a></center><br />
<form method="post" action="module.php" id='form' name="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" >
<!--  Module name is not being passed through via query string at submit  -->
<!--  With module name, moodle runs module_process_options and prepends the module name to fields.  -->
<input type="hidden" name="module" value="webconference">
<table cellpadding="9" cellspacing="0" >

<tr valign="top">
  <td align="right">Support Contact Email:</td>
  <td>
    <input name="supportemail" type="text" size="20" value="<?php p($CFG->webconference_supportemail) ?>" />
    </td>
    <td>
    <?php print_string("configsupportemail", 'webconference') ?>
     </td>
</tr>
<tr valign="top">
  <td align="right">Default Country+State:</td>
  <td>
     <?php p(webconference_print_countrystate_select('country',$CFG->webconference_country)) ?>
    </td>
    <td>
     <?php print_string("configdefaultcountry", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Expose Country to Seat Config:</td>
  <td>
    <input name="exposecountry" type="checkbox" value="Y" <?php if ($CFG->webconference_exposecountry == 'Y') { echo 'checked'; } ?> />
    </td>
    <td>
    <?php print_string("configexposecountry", 'webconference') ?>
     </td>
</tr>
<tr valign="top">
  <td align="right">Default Timezone:</td>
  <td>
     <?php p(webconference_print_timezone_select('timezone', $CFG->webconference_timezone)) ?>
    </td>
    <td>
     <?php print_string("configdefaulttimezone", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Expose Timezone to Seat Config:</td>
  <td>
    <input name="exposetimezone" type="checkbox" value="Y" <?php if ($CFG->webconference_exposetimezone == 'Y') { echo 'checked'; } ?> />
  </td>
  <td>
    <?php print_string("configexposetimezone", 'webconference') ?>
  </td>
</tr>
<tr valign="top">
  <td align="right">Use New Daylight Savings Time:</td>
  <td>
    <input name="newdaylightsavings" type="checkbox" value="1" <?php if ($CFG->webconference_newdaylightsavings == '1') { echo 'checked'; } ?> />
    </td>
  <td>
    <?php print_string("confignewdaylightsavings", 'webconference') ?>
  </td>
</tr>
<tr valign="top">
  <td align="right">Allow Teacher to Change Conference Key:</td>
  <td>
    <input name="allowpasschange" type="checkbox" value="1" <?php if ($CFG->webconference_allowpasschange == '1') { echo 'checked'; } ?> />
    </td>
  <td>
    <?php print_string("configallowpasschange", 'webconference') ?>
  </td>
</tr>
<tr valign="top">
  <td align="right">WebConference Host:</td>
  <td>
    <input name="serverhost" type="text" size="20" value="<?php p($CFG->webconference_serverhost) ?>" />
    </td>
    <td>
    <?php print_string("configserverhost", 'webconference') ?>
     </td>
</tr>
<tr valign="top">
  <td align="right">WebConference Port:</td>
  <td>
    <input name="serverport" type="text" size="5" value="<?php p($CFG->webconference_serverport) ?>" />
    </td>
    <td>
    <?php print_string("configserverport", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Your Account ID:</td>
  <td>
    <input name="accountid" type="text" size="8" value="<?php p($CFG->webconference_accountid) ?>" />
    </td>
    <td>
    <?php print_string("configaccountid", 'webconference') ?><br>
    <?php print_string("getafreetrial", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Your Master Username:</td>
  <td>
    <input name="masterusername" type="text" size="8" value="<?php p($CFG->webconference_masterusername) ?>" />
    </td>
    <td>
    <?php print_string("configmasterusername", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Your Master Password:</td>
  <td>
    <input name="masterpassword" type="password" size="8" value="<?php p($CFG->webconference_masterpassword) ?>" />
    </td>
    <td>
    <?php print_string("configmasterpassword", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">Re-Enter Your Master Password:</td>
  <td>
    <input name="confirmpassword" type="password" size="8" value="<?php p($CFG->webconference_masterpassword) ?>" />
    </td>
    <td>
    <?php print_string("configmasterpassword", 'webconference') ?>
    </td>
</tr>
<tr valign="top">
  <td align="right">WebConference Reseller ID (optional):</td>
  <td>
    <input name="resellerid" type="text" size="8" value="<?php p($CFG->webconference_resellerid) ?>" />
    </td>
    <td>
    <?php print_string("configresellerid", 'webconference') ?>
    </td>
</tr>
<tr>
  <td colspan="3" align="center">
     <input type="submit" id='id_wc_btn_save' value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>

</form>
<script type='text/javascript' language='javascript'>
<!--
//<![CDATA[
var wc_validate_webform = function(e) {
   YAHOO.util.Event.preventDefault(e);
   if (document.form.masterpassword.value != 
   	   document.form.confirmpassword.value ) {
      alert("Your Password fields don't match.");
      return false;	   
   }
   //return true;
   document.form.submit(); // submit the form.
};
YAHOO.util.Event.onDOMReady(function() {
    var btnsave = YAHOO.util.Dom.get('id_wc_btn_save');
    if (btnsave != undefined) {
       YAHOO.util.Event.addListener(btnsave, 'click', wc_validate_webform, {mode: 1});
       //YAHOO.log('btnsave attached','info');
    }    
});
//]]>
// -->
</script>
Return current item: WebConference Plugin for Moodle