<?/*
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
*/?>
<?php
#  $list = $att->members (15);
#
#  print $att->attribute_name (15)."<br />\n";
#
#  foreach ($list as $r) {
#    print "<input type=\"radio\" name=\"atts[15][option_id][]\" value=\"$r[0]\" /> $r[1]<br />\n";
#  }

## slighly different
#  $list = $att->members (15, DB_FETCHMODE_ASSOC);
#
#  print $att->attribute_name (15)."<br />\n";
#
#  foreach ($list as $r) {
#    print "<input type=\"radio\" name=\"atts[15][option_id][]\" value=\"$r[MEMBER_ID]\" /> $r[MEMBER_NAME]<br />\n";
#  }

  ## $dd - drop-down object
  ##   $dd->status ();
  ##   $dd->support_person ();
  ##   $dd->yes_no ();
  ##   $dd->escalated_person ();
  ##   $dd->problem_types ();
  ##   $dd->sources ();
?>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top" class="textsm" colspan="2">
        <table border="0" cellpadding="5" cellspacing="0" width="100%">
        <tr valign="top">
          <td align="center" valign="top" rowspan="2">
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="textsm">Open Date: (YYYY/MM/DD)<br />
                <input type="text" name="created_start_date" class="textsm" /> to
                <input type="text" name="created_end_date" class="textsm" /></td>
            </tr>
            <tr>
              <td class="textsm">Last Update Date: (YYYY/MM/DD)<br />
                <input type="text" name="updated_start_date" class="textsm" /> to
                <input type="text" name="updated_end_date" class="textsm" /></td>
            </tr>
            <tr>
              <td class="textsm">Close Date: (YYYY/MM/DD)<br />
                <input type="text" name="close_start_date" class="textsm" /> to
                <input type="text" name="close_end_date" class="textsm" /></td>
            </tr>
            </table>
          </td>
          <td align="center" valign="top">
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="textsm">Status:<br />
                <select multiple="multiple" size="4" name="status[]" class="textsm">
                <?php echo $dd->status (); ?>
                </select></td>
            </tr>
            </table>
          </td>
          <td align="center" valign="top">
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="textsm">Support Owner:<br />
              <select multiple="multiple" size="4" name="support_person_id[]" class="textsm">
              <?php echo $dd->support_person (); ?>
              </select></td>
            </tr>
            </table>
          </td>
          <td align="center" valign="top" class="textsm">
            <table border="0" cellpadding="1" cellspacing="0">
            <tr>
              <td class="textsm" align="center">Email Blast:</td>
            </tr>
            <tr>
              <td class="textsm" align="center">
                <select name="mass_queue" class="textsm">
                <option value=""></option>
                <?php echo $dd->yes_no (); ?>
                </select></td>
              </tr>
              <tr>
                <td class="textsm" align="center">Performance:</td>
              </tr>
              <tr valign="top">
                <td align="center" valign="bottom" class="textsm">
                <select name="use_help" class="textsm">
                  <option value=""></option>
                  <?php echo $dd->yes_no (); ?>
                </select></td>
              </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td colspan="3">Ticket Location:
                <select name="this_crm_is_owner" class="textsm">
                  <option value="Y" selected="selected">Owned by this RMS</option>
                  <option value="N">Anywhere in RMS</option>
                  <option value="R">Owned by another RMS</option>
                </select></td>
          </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" valign="top" class="textsm" colspan="2">
          <table width="100%" border="0" cellspacing="0">
          <tbody>
          <tr valign="middle">
            <td align="center" valign="middle" nowrap="nowrap" background="../../img/dotline.gif"><img alt="" src="../../img/cldot.gif" width="1" height="14" /></td>
          </tr>
          </tbody>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" valign="top" class="textsm" colspan="2">
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr><td align="center" valign="top">
          <table border="0" cellspacing="0" cellpadding="3">
          <tbody>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Last Name:</td>
            <td class="textsm"><input type="text" name="last_name" class="textsm" /></td></tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">First Name:</td>
            <td class="textsm"><input type="text" name="first_name" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Company:</td>
            <td class="textsm"><input type="text" name="company" class="textsm" /></td></tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Phone:</td>
            <td class="textsm"><input type="text" name="work_phone" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Email:</td>
            <td class="textsm"><input type="text" name="email" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Int. Comm.:</td>
            <td class="textsm"><input type="text" name="additional_info" class="textsm" /></td>
          </tr>
          </tbody>
          </table>
        </td>
        <td align="center" width="10"><img alt="" src="../../img/cldot.gif" width="10" height="1" /></td>
        <td align="center" valign="top">
          <table border="0" cellspacing="0" cellpadding="3">
          <tbody>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Account ID:</td>
            <td class="textsm"><input type="text" name="account_id" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Add. Info 1:</td>
            <td class="textsm"><input type="text" name="info1" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Add. Info 2:</td>
            <td class="textsm"><input type="text" name="info2" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Comments:</td>
            <td class="textsm"><input type="text" name="comments" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Browser: </td>
            <td class="textsm" align="left"><input type="text" name="browser" class="textsm" /></td>
          </tr>
          <tr>
            <td class="textsm" align="right" nowrap="nowrap">Subject: </td>
            <td class="textsm" align="left"><input type="text" name="subject" class="textsm" /></td>
          </tr>
          </tbody>
          </table>
        </td>
        <td align="center" valign="middle" width="10"><img alt="" src="../../img/cldot.gif" width="10" height="1" /></td>
        <td align="center" valign="top">
          <table border="0" cellpadding="3" cellspacing="0">
          <tr>
            <td align="right" valign="top" class="textsm">Escalated<br />Owner:</td>
            <td align="left" valign="top" class="textsm">
            <select multiple="multiple" size="4" name="escalated_to_person_id[]" class="textsm">
            <?php echo $dd->escalated_person (); ?>
            </select></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="textsm">Problem:</td>
            <td align="left" valign="top" class="textsm">
            <select multiple="multiple" size="4" name="problem_id[]" class="textsm">
            <?php echo $dd->problem_types (); ?>
            </select></td>
          </tr>
          <tr>
            <td align="right" valign="top" class="textsm">Source:</td>
            <td align="left" valign="top" class="textsm">
            <select multiple="multiple" size="4" name="source_id[]" class="textsm">
            <?php echo $dd->sources (); ?>
            </select></td>
          </tr>
          </table>
        </td>
      </tr>
      </table>
