Location: PHPKode > projects > phlyMail Lite > phlymail/frontend/templates/contacts.edit.tpl
<div id="edit" class="t l">
<script type="text/javascript">
/*<![CDATA[*/
function adjust_height()
{
	// Extrawurst für den werten Herren IE
	var ie = (window.navigator.userAgent.match(/MSIE/) && !window.navigator.userAgent.match(/Opera/)) ? true : false;
	availh = (ie) ? 560 : 540;
	availw = (ie) ? 500 : 470;
    window.resizeTo(availw, availh);
}

function delete_contact()
{
    state = confirm('{msg_askdele}');
    if (state == true) document.getElementById('saveframe').src = '{delete_link}';
}

function print()
{
    window.open('{print_url}', 'printcontact_{id}', 'width=650,height=600,left=100,top=100'
                    + ',scrollbars=yes,resizable=yes,location=no,menubar=no,status=no,toolbar=no');
}

function save_contact()
{<!-- START may_edit -->
    url = '{form_target}';<!-- END may_edit --><!-- START no_edit -->
    url = '#';
    return false;<!-- END no_edit -->
    document.getElementById('busy').style.visibility = 'visible';
    document.forms['formular'].action = url;
    document.forms['formular'].target = 'saveframe';
    window.setTimeout('document.forms["formular"].submit()', 1);
    return false;
}

function process(response)
{
    document.getElementById('busy').style.display = 'none';
    var regx = /\{.+\}/;
    var nresponse = regx.exec(response);
    if (!nresponse.length) {
    	alert(response);
    } else {
    	response = nresponse[0];
    }
    eval('next = ' + response);
    if (next['error']) {
        alert(next['error']);
    }
    if (next['done']) {
        done();
    }
}

function done()
{
    try { opener.parent.frames.PHM_tr.refreshlist(); } catch (e) { }
    try { opener.frames.PHM_tr.refreshlist(); } catch (e) { }
    self.close();
}
$(document).ready(function () {
    adjust_height();
    $('#tabpane').tabs().tabs('select', 0);
});
/*]]>*/
</script>
<form name="formular" action="#" target="saveframe" method="post" onsubmit="return save_contact();" enctype="multipart/form-data">

<div id="tabpane" class="ui-tabpane" style="height:16px;margin-top:4px;">
 <ul>
  <li><a href="#generic"><span>{leg_general}</span></a></li>
  <li><a href="#personal"><span>{leg_personal}</span></a></li>
  <li><a href="#business"><span>{leg_business}</span></a></li>
  <li><a href="#image"><span>{leg_image}</span></a></li><!-- START notyet -->
  <li><a href="#freefields"><span>{leg_free}</span></a></li>
  <li><a href="#attachments"><span>{leg_attachments}</span></a></li><!-- END notyet -->
 </ul>
</div>
<div class="sendmenubut topopen" style="height:380px;overflow:auto;">
 <div id="generic">
  <table border="0" cellpadding="2" cellspacing="0"><!-- START has_groupsel -->
   <tr>
    <td class="t l"><strong>{msg_group}:</strong></td>
    <td class="t l">
     <select size="3" name="gid[]" multiple="multiple"><!-- START groupline -->
      <option value="{id}"<!-- START selected --> selected="selected"<!-- END selected -->>{name}</option><!-- END groupline -->
     </select>
    </td>
   </tr><!-- END has_groupsel -->
   <tr>
    <td><strong>{msg_nick}</strong></td>
    <td><input type="text" size="32" name="nick" value="{nick}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_title}</strong></td>
    <td><input type="text" size="32" name="title" value="{title}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_fnam}</strong></td>
    <td><input type="text" size="32" name="firstname" value="{firstname}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_thirdname}</strong></td>
    <td><input type="text" size="32" name="thirdname" value="{thirdname}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_lnam}</strong></td>
    <td><input type="text" size="32" name="lastname" value="{lastname}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_bday}</strong></td>
    <td>
     <select name="birthday_day" size="1"><!-- START bday_dayline -->
      <option value="{day}"<!-- START selected --> selected="selected"<!-- END selected -->>{day}</option><!-- END bday_dayline -->
     </select>&nbsp;
     <select name="birthday_month" size="1"><!-- START bday_monthline -->
      <option value="{month}"<!-- START selected --> selected="selected"<!-- END selected -->>{month}</option><!-- END bday_monthline -->
     </select>&nbsp;
     <input type="text" size="4" name="birthday_year" value="{birthday_year}" />
     &nbsp;{msg_bday_format}
     </td>
   </tr>
   <tr>
    <td class="t l"><strong>{msg_comment}</strong></td>
    <td><textarea rows="6" cols="28" name="comments">{comments}</textarea></td>
   </tr>
  </table>
 </div>

 <div id="personal">
  <table border="0" cellpadding="2" cellspacing="0">
   <tr>
    <td class="t l"><strong>{msg_addr}</strong></td>
    <td>
     <input type="text" size="32" name="address" value="{address}" /><br />
     <input type="text" size="32" name="address2" value="{address2}" style="margin-top: 2px" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_street}</strong></td>
    <td><input type="text" size="32" name="street" value="{street}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_zip} / {msg_location}</strong></td>
    <td>
      <input type="text" size="14" name="zip" value="{zip}" /> / <input type="text" size="14" name="location" value="{location}" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_region} / {msg_country}</strong></td>
    <td>
      <input type="text" size="14" name="region" value="{region}" /> / <input type="text" size="14" name="country" value="{country}" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_fon}</strong></td>
    <td><input type="text" size="32" name="tel_private" value="{tel_private}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_fax}</strong></td>
    <td><input type="text" size="32" name="fax" value="{fax}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_cell}</strong></td>
    <td><input type="text" size="32" name="cellular" value="{cellular}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_email1}</strong></td>
    <td><input type="text" size="32" name="email1" value="{email1}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_www}</strong></td>
    <td><input type="text" size="32" name="www" value="{www}" /></td>
   </tr>
  </table>
 </div>

 <div id="business">
  <table border="0" cellpadding="2" cellspacing="0">
   <tr>
    <td><strong>{msg_company}</strong></td>
    <td><input type="text" size="32" name="company" value="{company}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_department}</strong></td>
    <td><input type="text" size="32" name="comp_dep" value="{comp_dep}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_role}</strong></td>
    <td><input type="text" size="32" name="comp_role" value="{comp_role}" /></td>
   </tr>
   <tr>
    <td class="t l"><strong>{msg_addr}</strong></td>
    <td>
     <input type="text" size="32" name="comp_address" value="{comp_address}" /><br />
     <input type="text" size="32" name="comp_address2" value="{comp_address2}" style="margin-top: 2px" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_street}</strong></td>
    <td><input type="text" size="32" name="comp_street" value="{comp_street}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_zip} / {msg_location}</strong></td>
    <td>
      <input type="text" size="14" name="comp_zip" value="{comp_zip}" />
     / <input type="text" size="14" name="comp_location" value="{comp_location}" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_region} / {msg_country}</strong></td>
    <td>
      <input type="text" size="14" name="comp_region" value="{comp_region}" />
     / <input type="text" size="14" name="comp_country" value="{comp_country}" />
    </td>
   </tr>
   <tr>
    <td><strong>{msg_fon2}</strong></td>
    <td><input type="text" size="32" name="tel_business" value="{tel_business}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_fax}</strong></td>
    <td><input type="text" size="32" name="comp_fax" value="{comp_fax}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_cell}</strong></td>
    <td><input type="text" size="32" name="comp_cellular" value="{comp_cellular}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_email1}</strong></td>
    <td><input type="text" size="32" name="email2" value="{email2}" /></td>
   </tr>
   <tr>
    <td><strong>{msg_www}</strong></td>
    <td><input type="text" size="32" name="comp_www" value="{comp_www}" /></td>
   </tr>
  </table>
 </div>

 <div id="image">
  {msg_uploadimage}:<br />
  <input type="file" name="image" size="16" /><!-- START delimage -->
  <input type="checkbox" name="delimage" value="1" id="delimage" />
  <label for="delimage">{msg_delimage}</label><!-- END delimage --><br /><!-- START ifimage -->
  <img src="{imgurl}" alt="" style="display:block;width:{imgw}px;height:{imgh}px;margin-top:4px;" /><!-- END ifimage -->
 </div>

</div>

<div style="clear:both;padding:8px;">
<div style="width:50%;float:left;text-align:left;"><!-- START save_button -->
 <input type="submit" value="{msg_save}" />
 <img id="busy" src="{theme_path}/images/busy.gif" style="visibility:hidden;" alt="" title="Please wait" />&nbsp;<!-- END save_button --><!-- START print_button -->
 <button type="button" onclick="print();">{msg_print}</button><!-- END print_button -->
</div>
<div style="width:50%;float:right;text-align:right;"><!-- START delete_button -->
 <button type="button" onclick="delete_contact()" class="error">{msg_dele}</button><!-- END delete_button -->
</div>
</div>
</form>
<iframe src="about:blank" id="saveframe" name="saveframe" style="width:1px;height:1px;"></iframe><br />
</div>
Return current item: phlyMail Lite