الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف افتح صفحه باطار جديد

بدأه aboasem33 في 10 مايو 2009 · 0 رد · 472 مشاهدة · في منتدى تطوير المواقع بـ PHP
مشاركة: واتساب X فيسبوك تيليجرام
#1

السلام عليكم

الرجاء المساعده حيث اني لا اعرف لغه php

واريد تغيير بسيط جدا

عند الضغط على زر دخول login

اريده انت يفتح لي الصفحه باطار جديد وليس ان يفتح الرابط بنفس الصفحه كما يفعل الان

السربت يمكنك مشاهدته هنا

http://www.mohm.gov.sa/tomail/src/login.php

وهذا هو كود الصفحه login.php كامل

<?php

/**

 * login.php -- simple login screen

 *

 * Copyright (c) 1999-2005 The SquirrelMail Project Team

 * Licensed under the GNU GPL. For full terms see the file COPYING.

 *

 * This a simple login screen. Some housekeeping is done to clean

 * cookies and find language.

 *

 * @version $Id: login.php,v 1.98.2.5 2004/12/27 15:04:00 kink Exp $

 * @package squirrelmail

 */

/**

 * Path for SquirrelMail required files.

 * @ignore

 */

define('SM_PATH','../');

/* SquirrelMail required files. */

require_once(SM_PATH . 'functions/strings.php');

require_once(SM_PATH . 'config/config.php');

require_once(SM_PATH . 'functions/i18n.php');

require_once(SM_PATH . 'functions/plugin.php');

require_once(SM_PATH . 'functions/constants.php');

require_once(SM_PATH . 'functions/page_header.php');

require_once(SM_PATH . 'functions/html.php');

require_once(SM_PATH . 'functions/global.php');

require_once(SM_PATH . 'functions/forms.php');

/**

 * $squirrelmail_language is set by a cookie when the user selects

 * language and logs out

 */

set_up_language($squirrelmail_language, TRUE, TRUE);

/**

 * Find out the base URI to set cookies.

 */

if (!function_exists('sqm_baseuri')){

	require_once(SM_PATH . 'functions/display_messages.php');

}

$base_uri = sqm_baseuri();

/*

 * In case the last session was not terminated properly, make sure

 * we get a new one.

 */

sqsession_destroy();



header('Pragma: no-cache');

do_hook('login_cookie');

/* Output the javascript onload function. */

$header = "<script language=\"JavaScript\" type=\"text/javascript\">\n" .

		  "<!--\n".

		  "  function squirrelmail_loginpage_onload() {\n".

		  "	document.forms[0].js_autodetect_results.value = '" . SMPREF_JS_ON . "';\n".

		  "	var textElements = 0;\n".

		  "	for (i = 0; i < document.forms[0].elements.length; i++) {\n".

		  "	  if (document.forms[0].elements.type == \"text\" || document.forms[0].elements.type == \"password\") {\n".

		  "		textElements++;\n".

		  "		if (textElements == " . (isset($loginname) ? 2 : 1) . ") {\n".

		  "		  document.forms[0].elements.focus();\n".

		  "		  break;\n".

		  "		}\n".

		  "	  }\n".

		  "	}\n".

		  "  }\n".

		  "// -->\n".

		  "</script>\n";

$custom_css = 'none.css';

displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );

echo '<body text="#000000" bgcolor="#FFFFFF" link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="squirrelmail_loginpage_onload();">' .

	 "\n" . addForm('redirect.php', 'post');

$username_form_name = 'login_username';

$password_form_name = 'secretkey';

do_hook('login_top');

$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : '');

/* If they don't have a logo, don't bother.. */

if (isset($org_logo) && $org_logo) {

	/* Display width and height like good little people */

	$width_and_height = '';

	if (isset($org_logo_width) && is_numeric($org_logo_width) &&

	 $org_logo_width>0) {

		$width_and_height = " width=\"$org_logo_width\"";

	}

	if (isset($org_logo_height) && is_numeric($org_logo_height) &&

	 $org_logo_height>0) {

		$width_and_height .= " height=\"$org_logo_height\"";

	}

}

?>

<style type="text/css">

<!--

body {

 text-align: center;

 margin: 0;

 padding: 0;

 background-color: #72AAF6;

 font-family: Verdana, Lucida, Helvetica;

}

#container {

 background-image:	url(../images/bg.jpg);

 background-repeat: no-repeat;

 background-attachment: scroll;

 background-position: center left;

 margin: 8em auto;

 width: 474px;

 height: 273px;

 position: relative;

}

#logo {

 width: 140px;

 height: 78px;

 background-image: url(../images/%3C?\ echo\ \"$org_logo\"\ ?>);

 position: absolute;

 top: 120px;

 left: 40px

}

#copyright {

 color: #97E4F7;

 width: 290px;

 height: 77px;

 position: absolute;

 top: 155px;

 left: -200px;

}

h1 {

 text-align: right;

 font-size: 1em;

 color: #FFFFFF;

 width: 375px;

 margin: 65px 20px 0px 0px;



 position: absolute;

 top: -10px;

 left: 25px;

}

h2 {

 color: #666666;



 text-align: right;

 font-size: .6em;

 margin: 15px 30px;



 position: absolute;

 top: 90px;

 left: 170px;

}

fieldset {

 width: 200px;

 margin: 0 auto auto 190px;

 text-align: right;

 border: none;

 position: absolute;

 top: 100px;

 left: 20px;

}

p.1, p.2, p.3 {

 font-size: .7em;

 color: #6D6D6D;

 vertical-align: super;

}

p.1 {

 color: #666666;

 margin: 0px 0 0 0;

}

p.2, p.3 {

 margin: 3px 0 0 0;

 color: #6D6D6D;

}

p.4 {

 margin: 3px 0px 0px 0px;

 text-decoration: none;



}

.input {

 margin: 3px 12px 0px 7px;



 background-color: #C7E1F4;

 height: 16px;

 width: 8.5em;

 border: 1px solid #FFFFFF;

 font-size: 11px;

 vertical-align: middle;

}

.button {

 width: 93px;

 height: 16px;

 background-color: #235088;

 color: #ffffff;

 border: none;

 font-weight: bold;

 font-size: 9px;

 margin: -10px 12px 0 0 !important;

 margin: 5px 12px 0 0;

}

p.logout {

 font-size: .7em;

 font-weight: bold;

 text-transform: uppercase;

 color: #0066CC;

 margin: 3em 2em 0 15em;

}



-->

</style>



<div id="container"> 

  <h1>WebMail Login</h1>



  <fieldset>

  <font size="2" color="#000000">username:</font><?php echo "<input type=\"text\" name=\"$username_form_name\" VALUE=\"\" tabindex=\"1\" class=\"input\">"; ?>

  <font size="2" color="#000000">password:</font><input name="<?php echo $password_form_name; ?>" type="password" class="input" tabindex=\"2\">

  <input type=hidden name="js_autodetect_results" value="SMPREF_JS_OFF">

  <input type=hidden name="just_logged_in" value=1>

  <p class="3"> 

	<input name="button" type="submit" value="login" class="button">

  </p>

  <p class="3"> 

  <?php do_hook('login_form'); ?>

	</p> 

  <div id="copyright"> 

<font size="1" color="#DFDFDF">Powered By <a href="NutsMail.com Squirrelmail Skins, Templates and Themes" target="_blank" style="text-decoration: none;"><font color="#DFDFDF">NutsMail.com</font></a> </font>

</div>

  </fieldset>

</div>

</form>

<?php

do_hook('login_bottom');

echo "</body>\n".

	 "</html>\n";

?>

تم تعديل هذه المشاركة بواسطة aboasem33 في 10 مايو 2009 في 10:57

مواضيع مشابهة