Пример #1
0
<?php

/****************************************************************************
 *	This file is part of MWFramework.                                       *
 *	                                                                        *
 *	MWFramework 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 3 of the License, or       *
 *	(at your option) any later version.                                     *
 *	                                                                        *
 *	MWFramework 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 MWFramework.  If not, see <http://www.gnu.org/licenses/>.    *
 ****************************************************************************/
require_once "core/ClassLoader.php";
if (!isset($_GET["mod"]) || empty($_GET["mod"])) {
    $_GET["mod"] = BaseConfiguration::$DefaultMod;
    $_GET["view"] = "default";
}
if (!isset($_GET["view"]) || empty($_GET["view"])) {
    $_GET["view"] = "default";
}
MWF_ViewLoader::Load($_GET["mod"], $_GET["view"], true);
Пример #2
0
					//var data = JSON.parse(ee.responseText);
					var ResultBox = document.getElementById("ResultBox");

					ResultBox.innerHTML = ee.responseText;
				}
			}
			
			ee.open("POST", "?mod=mod_search&view=search_action", true);
			ee.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			ee.send("q=" + encodeURI(SearchText));
			return false;
		}
	</script>
</head>
<body>
	<?php 
MWF_ViewLoader::Load("mod_core_design", "headerbar");
?>
	<h1>Search Item</h1> 
	<div id="searchbox">
		<form method="POST" onSubmit="return Search(this);">
			<input type="text" name="product" placeholder="Enter Product Name" />
			<input type="submit" value="Search" />
		</form>
	</div>
	<hr />
	<div id="ResultBox">
		
	</div>
</body>
</html>