<?/*
Copyright (C) 2003 Media Net Link, Inc. Danville, CA 94526 USA

This file is part of AthenaRMS.

AthenaRMS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

AthenaRMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/?>
<a href=".">Super Admin Home</a>
<?php
  if (!$crm_id) {
    print "No RMS id.";
    return;
  }
  
  $lib = '../../../lib';
  require_once 'crm.php';
  
  $crm = new CRM ($dbi);
  
  $crm_r = $crm->Select_by_CRM_ID ($crm_id);
  
  if ($crm_name) {
    foreach ( array (
      'crm_name',
      'email_domain',
      'users_url',
      'email_sig',
      'backup_email',
    ) as $set) {
      $crm_r->Set ($set, $$set);
    }

    foreach (array('email_domain','web_domain') as $set) {
      $crm_r->Set( $set, strtolower($crm_r->Get($set)) );
    }

    $crm_r->Update ();
    $crm_r = $crm->Select_by_CRM_ID ($crm_id);
  }
?>

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

<input type="hidden" name="crm_id" value="<?php echo $crm_id; ?>" />

To add more problems, people, and sources, log in to the RMS and go the admin page.

<table border="0">
<tr>
  <td>RMS Name</td>
  <td><input type="text" name="crm_name" value="<?php echo $crm_r->Get('crm_name'); ?>" /></td>
</tr>
<tr>
  <td>Email Domain</td>
  <td><input type="text" name="email_domain" value="<?php echo $crm_r->Get('email_domain'); ?>" /></td>
</tr>
<tr>
  <td>crypt key</td>
  <td><?php echo $crm_r->Get('key'); ?></td>
</tr>
<tr>
  <td>Users URL</td>
  <td><input type="text" name="users_url" value="<?php echo $crm_r->Get('users_url'); ?>" /></td>
</tr>
<tr>
  <td>Email Signature</td>
  <td><textarea name="email_sig"><?php echo $crm_r->Get('email_sig'); ?></textarea></td>
</tr>
<tr>
  <td>Backup Email</td>
  <td><input type="text" name="backup_email" value="<?php echo $crm_r->Get('backup_email'); ?>" /></td>
</tr>
</table>

<input type="submit" name="submit" value="Submit" />

</form>
