[4502] | 1 | {cc_api}
|
---|
| 2 |
|
---|
| 3 | <input id="cc_contact_details_title" type="hidden" value="{cc_contact_details_title}">
|
---|
| 4 | <input id="cc_contact_details_attr_name" type="hidden" value="{cc_contact_details_attr_name}">
|
---|
| 5 | <input id="cc_contact_details_attr_value" type="hidden" value="{cc_contact_details_attr_value}">
|
---|
| 6 | <input id="cc_contact_details_no_fields" type="hidden" value="{cc_contact_details_no_fields}">
|
---|
| 7 |
|
---|
| 8 | <div id="cc_contact_details_content" style="position: absolute; visibility: hidden">
|
---|
| 9 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 10 | <tr>
|
---|
| 11 | <td>
|
---|
| 12 | <div id="id_cc_contact_details_fields" style="position: center; width:500px;height:270px; border: 1px solid #999;overflow:auto">
|
---|
| 13 | </div>
|
---|
| 14 | </td>
|
---|
| 15 | </tr>
|
---|
| 16 | <tr>
|
---|
| 17 | <td>
|
---|
| 18 | <div id="ccCDFuncitons" style="border: 0px solid black; width: 220px; height: 20px">
|
---|
| 19 | <input title="{cc_contact_details_close}" type="button" onclick="javascript:closeContactDetails()" value="{cc_contact_details_close}" style="position: absolute; left: 185px; width: 60px" />
|
---|
| 20 | </div>
|
---|
| 21 | </td>
|
---|
| 22 | </tr>
|
---|
| 23 | </table>
|
---|
| 24 | </div>
|
---|
| 25 |
|
---|
| 26 | <script type="text/javascript">
|
---|
| 27 | <!--
|
---|
| 28 | // Overloading some methods for fix cursor problem in Firefox.
|
---|
| 29 | if(!is_ie) {
|
---|
| 30 | dJSWin.prototype.close = function() {
|
---|
| 31 | dJSWin.state = 0;
|
---|
| 32 | dd.elements[this.title.id].hide();
|
---|
| 33 | if ( dd_div = document.getElementById('divScrollMain'))
|
---|
| 34 | Element("divScrollMain").style.overflow = 'auto';
|
---|
| 35 | }
|
---|
| 36 | dJSWin.prototype.open = function() {
|
---|
| 37 | this.moveTo(window.innerWidth/2 + window.pageXOffset - dd.elements[this.title.id].w/2,
|
---|
| 38 | window.innerHeight/2 + window.pageYOffset - dd.elements[this.clientArea.id].h/2);
|
---|
| 39 | dd.elements[this.title.id].maximizeZ();
|
---|
| 40 | dd.elements[this.title.id].show();
|
---|
| 41 | if ( dd_div = document.getElementById('divScrollMain'))
|
---|
| 42 | dd_div.style.overflow = 'hidden';
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | var contactdetails_onload = document.body.onload;
|
---|
| 47 | var contactdetailsWin;
|
---|
| 48 |
|
---|
| 49 | __cdWin = function(e)
|
---|
| 50 | {
|
---|
| 51 |
|
---|
| 52 | contactdetailsWin = new dJSWin({'id': 'cc_contact_details_window',
|
---|
| 53 | 'content_id': 'cc_contact_details_content',
|
---|
| 54 | 'win_class': 'row_off',
|
---|
| 55 | 'width': '500px',
|
---|
| 56 | 'height': '295px',
|
---|
| 57 | 'title_color': '#3978d6',
|
---|
| 58 | 'title': Element('cc_contact_details_title').value,
|
---|
| 59 | 'title_text_color': 'white',
|
---|
| 60 | 'button_x_img': Element('cc_phpgw_img_dir').value+'/winclose.gif',
|
---|
| 61 | 'border': true});
|
---|
| 62 |
|
---|
| 63 | contactdetailsWin.draw();
|
---|
| 64 |
|
---|
| 65 | };
|
---|
| 66 |
|
---|
| 67 | if (is_ie) // || is_moz1_6)
|
---|
| 68 | {
|
---|
| 69 |
|
---|
| 70 | document.body.onload = function(e) { setTimeout('__cdWin()', 10); contactdetails_onload ? setTimeout('contactdetails_onload()'): false;};
|
---|
| 71 | }
|
---|
| 72 | else
|
---|
| 73 | {
|
---|
| 74 | // __cdWin();
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | //-->
|
---|
| 78 | </script>
|
---|