Ejemplo n.º 1
0
function network_tools_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $error, $done, $domain, $lookup, $action;
    // For Detail
    if (optGET('domain_lookup')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            showdetail();
            return true;
        }
    }
    softheader($l['<title>']);
    error_handle($error);
    if (!empty($done)) {
        echo '<div class="sai_success">' . $done . '</div><br /><br />';
    }
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'network_tools.gif" />&nbsp;' . $l['network_tools'] . '</center>
<form accept-charset="' . $globals['charset'] . '" name="domain_lookup" method="post" action="" id="domain_lookup">
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;">
	<tr>
		<td width="50%">
			<span class="sai_head">' . $l['lbl_head'] . '</font></span><br/><span class="sai_exp">' . $l['lookup_desc'] . '</span>
		</td>
		<td>			
			<input type="text" name="domain_name" id="domain_name" size="30" value="' . POSTval('domain_name', '') . '" />
		</td>
	</tr>
	<tr>
		<td>
			<p align="right">
				<input type="button" class="sai_graybluebut" name="dns_lookup" value="' . $l['domain_lookup'] . '" id="dns_lookup"/>
			</p>
		</td>
		<td>
			<p align="left">
				<input type="button" class="sai_graybluebut" name="dns_traceroute" value="' . $l['domain_trace'] . '" id="dns_traceroute"/> &nbsp;<img id="trace_prog" src="' . $theme['images'] . 'progress.gif" style="display:none">
			</p>
		</td>
	</tr>
</table>
</form><br />

	<div id="domain_lookup_tab" style="display:none"></div></br>
	
	<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	
	var message_box = function(){			
			return{
				show_message: function(title, body , image) {			
					var okbutton = \'<input  style="width:75px" class="sai_graybluebut" type="button" onclick="message_box.close_message();" value="OK" />\';
					if(image == "1"){
						var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
					}else{
						var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';			
					}					
					if(jQuery(\'.sai_message_box\').html() === null) {
						var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1">\' +  title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table></div>\';
						jQuery(document.body).append( message );								
						jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
						jQuery(\'.sai_message_box\').show(\'slow\');
					}else{
						var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table>\';				
						jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
						jQuery(\'.sai_message_box\').show(\'slow\');
						jQuery(\'.sai_message_box\').html( message );
					}
				},
				close_message: function() {
					jQuery(\'.sai_message_box\').hide(\'fast\');
				}
			}
		}();
		
		$(document).ready(function(){
						
			// For close details
			$(".dclose").click(function(){
				$("#domain_lookup_tab").slideUp(\'slide\',\'\',5000);
			});
			
			// Domain Lookup
			$("#dns_lookup").click(function(){
				
				var action = $(this).attr(\'id\');
				action = action.substr(4);
				var domain = $("#domain_name").val();
				
				$.ajax({
					type: "POST",
					url: window.location+"&domain_lookup=1&domain_name="+domain+"&action="+action,
					
					// Checking for error
					success: function(data){
						var result = data.substring(0,1);
						if(result == "0"){								
							var msg = data.substring(1);
							message_box.show_message( "Error",msg,1);
						}else{										
							$("#domain_lookup_tab").html(data);
							$("#domain_lookup_tab").slideDown(\'slide\',\'\',5000);
						}
					},
					error: function() {
						message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);						
					}															
				});		
														
			});	
			
			// Domain Lookup
			$("#dns_traceroute").click(function(){
				
				$("#trace_prog").css("display", "");
				var action = $(this).attr(\'id\');
				action = action.substr(4);
				var domain = $("#domain_name").val();
				
				$.ajax({
					type: "POST",
					url: window.location+"&domain_lookup=1&domain_name="+domain+"&action="+action,
					
					// Checking for error
					success: function(data){
						$("#trace_prog").css("display", "none");																		
						var result = data.substring(0,1);
						if(result == "0"){
							$("#trace_prog").css("display", "none");
							var msg = data.substring(1);
							message_box.show_message( "Error",msg,1);
						}else{										
							$("#domain_lookup_tab").html(data);
							$("#domain_lookup_tab").slideDown(\'slide\',\'\',5000);
						}
					},
					error: function() {
						message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);						
					}															
				});		
														
			});	
						
		});	
		// ]]></script>';
    softfooter();
}
Ejemplo n.º 2
0
function sslkey_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $error, $done, $domain_list, $key_list, $detailkey, $done;
    // For delete
    if (optGET('ajaxdel')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            echo '1' . $l['delete'];
            showcert();
            return true;
        }
    }
    // For detail
    if (optGET('ajaxdetail')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            showdetail();
            return true;
        }
    }
    softheader($l['<title>']);
    error_handle($error, '100%');
    if (!empty($done)) {
        echo '<div class="sai_success">' . $done . '</div>';
    }
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'sslkey.gif" />&nbsp;' . $l['lbl_head'] . '</center>
	<div id="showrectab">';
    showcert();
    echo '<br/></div>
	<div id="detailrectab" style="display:none"></div><br /><br />
	<form accept-charset="' . $globals['charset'] . '" action="" method="post" enctype="multipart/form-data">
		<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding:15px;" >
			<tr>
				<td colspan="2">
					<span class="sai_head">' . $l['upload'] . '</span><br />
				</td>
			</tr>
			<tr>
				<td width="40%">
					<span class="sai_exp">' . $l['domain'] . '</span><br />
				</td>
				<td valign="top">
					<input type="text" name="selectdom" id="selectdom" size="30" value="" />
				</td>
			</tr>
			<tr>
				<td valign="top">
					<span class="sai_exp">' . $l['paste'] . '</span>
				</td>
				<td>
					<textarea name="kpaste" id="kpaste" rows="25" cols="70"></textarea><br /><br />
					<span class="sai_head" style="text-align:center">' . $l['or'] . '</span>
				</td>
			</tr>
			<tr>
				<td width="35%">
					<span class="sai_exp">' . $l['choose_file'] . '</span><br />
				</td>
				<td>
					<div id="filecabinet"><input type=file id="ukey" name="ukey" ></div>
				</td>
			</tr>
			<tr>
			<td colspan="2">
				<p align="center">
					<input type="submit" name="install_key" style="cursor:pointer" value="' . $l['install_button'] . '" class="sai_graybluebut" id="instkey"/>
				</p>
			</td>
		</tr>
		</table><br /><br />
	</form>
	
	<form accept-charset="' . $globals['charset'] . '" action="" method="post" >
		<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding:15px;" >
			<tr>
				<td width="35%">
					<span class="sai_head">' . $l['genrate'] . '</span>
				</td>
			</tr>
			<tr>
				<td>
					<span class="sai_exp">' . $l['domain'] . '</span><br />
				</td>
				<td valign="top">
					<input type="text" name="selectdom" id="selectdom" size="30" value="" />
				</td>
			</tr>
			<tr>
				<td width="35%">
					<span class="sai_exp">' . $l['ksize'] . '</span><br />
				</td>
				<td>
					<select class="input" name="keysize" id="keysize">
						<option value="2048">' . $l['2048'] . '</option>
						<option value="4096">' . $l['4096'] . '</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<p align="center">
						<input type="submit" name="create_key" style="cursor:pointer" value="' . $l['genrate_button'] . '" class="sai_graybluebut" id="create_key"/>
					</p>
				</td>
			</tr>
		</table>
	</form>
	
	<script language="javascript" type="text/javascript"><!-- // --><![CDATA[	
	
	var message_box = function(){			
		return{
			show_message: function(title, body, image) {
				var okbutton = \'<input  style="width:75px" class="sai_graybluebut" type="button" onclick="message_box.close_message();" value="OK" />\';
				if(image == "1"){
					var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
				}else{
					var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';
				}
				
				if(jQuery(".sai_message_box").html() === null) {
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1">\' +  title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table></div>\';
					jQuery(document.body).append( message );
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow");
				}else{
					var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table>\';
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow")
						.html(message);
				}
			},
			delete_message: function(title, body, did) {
				var yesbutton = \'<input type="button" style="width:75px" onclick="message_box.yes_close_message(\\\'\'+did+\'\\\');" value="YES" class="sai_graybluebut"/>\';
				var nobutton = \'<input type="button" style="width:75px" onclick="message_box.no_close_message();" value="NO" class="sai_graybluebut" />\';
				var img = \'<img src="' . $theme['images'] . 'remove_big.gif" />\';
				if(jQuery(".sai_message_box").html() === null) {
					
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1" height="10%">\' +  title + \'</td></tr><tr ><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table></div>\';
					jQuery(document.body).append( message );
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow");
					
				}else{
					
					var message = \' <table  border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1" height="10%">\' + title + \'</td></tr><tr><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table>\';
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow")
						.html(message);
				}
			},
			close_message: function() {
				$(".sai_message_box").hide("fast");
			},
			yes_close_message: function(did) {
				$("#did"+did).attr("src", "' . $theme['images'] . 'progress.gif");
				$(".sai_message_box").hide("fast");
				$.ajax({
					type: "POST",
					url: window.location+"&ajaxdel=1&delete_record="+did,
					
					// Checking for error
					success: function(data){
						var result = data.substring(0,1);
						var msg = data.substring(1);
						
						if(result == "1"){
							var msg = data.substring(1, data.indexOf("<table"));
							var output = data.substring(data.indexOf("<table"));
							message_box.show_message( "Delete ", msg, 2);
							$("#showrectab").html(output);
						}else{
							message_box.show_message("Error ", msg, 1);
							$("#did"+did).attr("src", "' . $theme['images'] . 'remove.gif");
						}
					},
					error: function(request,error) {
						message_box.show_message("Error", "' . $l['connect_error'] . '", 1);
					}
				});
			},
			no_close_message: function() {
				$(".sai_message_box").hide("fast");
			}
		}
	}();
	
	$(document).ready(function(){
		
		$(".sai_altrowstable tr").mouseover(function(){
			var old_class = $(this).attr("class");		
			$(this)
				.attr("class", "sai_tr_bgcolor")
				.mouseout(function(){
					$(this).attr("class", old_class);
				});
		});
		
	});
	
	// ]]></script>';
    softfooter();
}
Ejemplo n.º 3
0
function sslcsr_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $error, $done, $domain_list, $domain_name, $csr_list, $detailcsr;
    // For delete
    if (optGET('ajaxdel')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            echo '1' . $l['delete'];
            showcert();
            return true;
        }
    }
    // For detail
    if (optGET('ajaxdetail')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            showdetail();
            return true;
        }
    }
    softheader($l['<title>']);
    error_handle($error, '100%');
    if (!empty($done)) {
        echo '<div class="sai_success">' . $done . '</div>';
    }
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'sslcsr.gif" />&nbsp;' . $l['lbl_head'] . '</center>';
    if (empty($domain_list)) {
        echo ' <center ><h2>' . $l['no_key_file'] . '</h2></center>';
    } else {
        echo '<div id="showrectab">';
        showcert();
        echo '</div>
	<div id="detailrectab" style="display:none">';
        echo '</div><br /><br />
		
		<form accept-charset="' . $globals['charset'] . '" name="createssl" method="post" action="">
		<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
		<tr>
			<td>
				<span class="sai_head">' . $l['key'] . '</span><br />
			</td>	
			<td>
				<select class="input" name="selectkey" id="selectkey">';
        foreach ($domain_list as $key => $value) {
            $ext = get_extension($value);
            if ($ext == 'key') {
                $file = get_filename($value);
                if (!in_array($file . '.csr', $csr_list)) {
                    echo '<option value=' . $file . '>' . $file . '</option>';
                }
            }
        }
        echo '<option value=newkey>' . $l['genrate'] . '</option>';
        echo '</select>
			</td>
		</tr>
		<tr>
			<td>
				<span class="sai_head">' . $l['domain'] . '</span><br />
				<span class="sai_exp">' . $l['domain_desc'] . '</span></td>
			</td>
			<td>
				<input type="text" name="domain" id="domain" size="30" ' . (!empty($error) ? 'value="' . POSTval('domain', '') . '"' : '') . ' />
			</td>
		</tr>	
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['country'] . '</span><br />
				<span class="sai_exp">' . $l['country_desc'] . '</span></td>
			<td>
				<input type="text" name="country" id="country" size="30" ' . (!empty($error) ? 'value="' . POSTval('country', '') . '"' : '') . ' />
			</td>
		</tr>
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['state'] . '</span><br />
				<span class="sai_exp">' . $l['state_desc'] . '</span></td>
			<td>
				<input type="text" name="state" id="state" size="30" ' . (!empty($error) ? 'value="' . POSTval('state', '') . '"' : '') . ' />
			</td>
		</tr>
		
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['locality'] . '</span><br />
				<span class="sai_exp">' . $l['locality_desc'] . '</span></td>
			<td>
				<input type="text" name="locality" id="locality" size="30" ' . (!empty($error) ? 'value="' . POSTval('locality', '') . '"' : '') . ' />
			</td>
		</tr>
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['organisation'] . '</span><br />
				<span class="sai_exp">' . $l['organisation_desc'] . '</span></td>
			<td>
				<input type="text" name="organisation" id="organisation" size="30" ' . (!empty($error) ? 'value="' . POSTval('organisation', '') . '"' : '') . ' />
			</td>
		</tr>
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['org_unit'] . '</span><br />
				<span class="sai_exp">' . $l['org_unit_desc'] . '</span></td>
			<td>
				<input type="text" name="orgunit" id="orgunit" size="30" ' . (!empty($error) ? 'value="' . POSTval('orgunit', '') . '"' : '') . ' />
			</td>
		</tr>		
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['email'] . '</span><br />
				<span class="sai_exp">' . $l['email_desc'] . '</span></td>
			<td>
				<input type="text" name="email" id="email" size="30" ' . (!empty($error) ? 'value="' . POSTval('email', '') . '"' : '') . ' />
			</td>
		</tr>
		<tr>
			<td width="40%">
				<span class="sai_head">' . $l['pass_pharse'] . '</span><br />
				<span class="sai_exp">' . $l['pass_pharse_desc'] . '</span></td>
			<td>
				<input type="text" name="pass" id="pass" size="30" ' . (!empty($error) ? 'value="' . POSTval('pass', '') . '"' : '') . ' />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center"><input type="submit"  name="createcsr" value="' . $l['createcsr'] . '" class="sai_graybluebut" /></p>
			</td>
		</tr>
		</table>		
		</form>';
    }
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[	
	
	var message_box = function(){			
		return{
			show_message: function(title, body , image) {			
				var okbutton = \'<input  style="width:75px" class="sai_graybluebut" type="button" onclick="message_box.close_message();" value="OK" />\';
				if(image == "1"){
					var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
				}else{
					var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';			
				}					
				if(jQuery(\'.sai_message_box\').html() === null) {
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1">\' +  title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table></div>\';
					jQuery(document.body).append( message );								
					jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
					jQuery(\'.sai_message_box\').show(\'slow\');
				}else{
					var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table>\';				
					jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
					jQuery(\'.sai_message_box\').show(\'slow\');
					jQuery(\'.sai_message_box\').html( message );
				}
			},
			delete_message: function(title, body ,did) {			
				var yesbutton = \'<input type="button" style="width:75px" onclick="message_box.yes_close_message(\\\'\'+did+\'\\\');" value="YES" class="sai_graybluebut"/>\';
				var nobutton = \'<input type="button" style="width:75px" onclick="message_box.no_close_message();" value="NO" class="sai_graybluebut" />\';
				var img = \'<img src="' . $theme['images'] . 'remove_big.gif" />\';
				if(jQuery(\'.sai_message_box\').html() === null) {
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1" height="10%">\' +  title + \'</td></tr><tr ><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table></div>\';				
					jQuery(document.body).append( message );								
					jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
					jQuery(\'.sai_message_box\').show(\'slow\');
				}else{
					var message = \' <table  border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1" height="10%">\' + title + \'</td></tr><tr><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table>\'
					jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
					jQuery(\'.sai_message_box\').show(\'slow\');
					jQuery(\'.sai_message_box\').html( message );
				}
			},
			close_message: function() {
				jQuery(\'.sai_message_box\').hide(\'fast\');
			},
			yes_close_message: function(did) {	
				$(\'#did\'+did).attr("src","' . $theme['images'] . 'progress.gif");	
				jQuery(\'.sai_message_box\').hide(\'fast\');					
				$.ajax({				
					type: "POST",				
					url: window.location+"&ajaxdel=1&delete_record="+did,				
					// checking for error
					success: function(data){
						var result = data.substring(0,1);					
						var msg = data.substring(1);
						if(result == "1"){
							var msg = data.substring(1,data.indexOf("<table"));
							var output = data.substring(data.indexOf("<table"));							
							message_box.show_message( "Delete ",msg,2);
							$("#showrectab").html(output);																																			
						}
						if(result == "0"){
							message_box.show_message( "Error ",msg,1);																																			
							$(\'#did\'+did).attr("src","' . $theme['images'] . 'remove.gif");																																							
						}
					},				
					error: function(request,error) {
						message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);					
					}
				});					
			},
			no_close_message: function() {
				jQuery(\'.sai_message_box\').hide(\'fast\');			
			}
		}
	}();
	
	$(document).ready(function(){	
		$(".sai_altrowstable tr").mouseover(function(){
			var old_class = $(this).attr(\'class\');		
			$(this).attr("class", \'sai_tr_bgcolor\');		
			$(this).mouseout(function(){
			$(this).attr(\'class\', old_class);
			});
		});				
	});	
	// ]]></script>';
    softfooter();
}