]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('function.php'); head(); check_login(); ?> <!DOCTYPE html> <html lang="en"><head> <meta charset="utf-8"> <title>Sweet Dreams - Grids</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="css/style.css" rel="stylesheet"> <link href="css/bootstrap.css" rel="stylesheet"> <link rel="stylesheet" href="css/jquery-ui-1.8.16.custom.css" media="screen" /> <link rel="stylesheet" href="css/fullcalendar.css" media="screen" /> <link rel="stylesheet" href="css/chosen.css" media="screen" /> <link rel="stylesheet" href="css/datepicker.css" > <link rel="stylesheet" href="css/colorpicker.css"> <link rel="stylesheet" href="css/glisse.css?1.css"> <link rel="stylesheet" href="css/jquery.jgrowl.css"> <link rel="stylesheet" href="css/elfinder.css" media="screen" /> <link rel="stylesheet" href="css/jquery.tagsinput.css" /> <link rel="stylesheet" href="css/demo_table.css" > <link rel="stylesheet" href="css/TableTools.css" > <link rel="stylesheet" href="css/validationEngine.jquery.css"> <link rel="stylesheet" href="css/jquery.stepy.css" /> <link rel="stylesheet" href="css/font-awesome.css"> <link rel="stylesheet" href="css/bootstrap-responsive.css"> <link rel="alternate stylesheet" type="text/css" media="screen" title="green-theme" href="css/green.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="red-theme" href="css/red.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="black-theme" href="css/black.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="css/orange.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="purple-theme" href="css/purple.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="silver-theme" href="css/silver.css" /> <link rel="alternate stylesheet" type="text/css" media="screen" title="metro-theme" href="css/metro.css" /> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if lte IE 8]><script type="text/javascript" src="/js/excanvas.min.js"></script><![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="/images/icons/favicon.ico"> </head> <body> <!-- switcher color --> <div id="slideout"> <a class="link-settings-colors"><i class="icon-cog"></i></a> <div id="slideout_inner"> <form id="switchform"> <ul> <li><a href="javascript:chooseStyle('none', 30)" class="colorblue">Default style</a></li> <li><a href="javascript:chooseStyle('orange-theme', 30)" class="colororange">Orange theme</a></li> <li><a href="javascript:chooseStyle('silver-theme', 30)" class="colorsilver">Silver theme</a></li> <li><a href="javascript:chooseStyle('black-theme', 30)" class="colorblack">Black theme</a></li> <li><a href="javascript:chooseStyle('green-theme', 30)" class="colorgreen">Green theme</a></li> <li><a href="javascript:chooseStyle('purple-theme', 30)" class="colorpurple">Purple theme</a></li> <li><a href="javascript:chooseStyle('red-theme', 30)" class="colorred">Red theme</a></li> <li><a href="javascript:chooseStyle('metro-theme', 30)" class="colormetro">Metro theme</a></li> </ul> </form> </div> </div> <!-- switcher color END--> <!--Header Start--> <div class="header" > <a href="dashboard.html" class="logo"><h1>SWEET DREAMS</h1></a> <div class="pull-right"> <!--Notifications Start--> <div class="notifications-head"> <!--Messages Start--> <div class="btn-group m_left hide-mobile" > <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <span class="notification">531</span><span class="triangle-1"></span><i class="icon-comments"></i><span class="caret"></span> </a> <div class="dropdown-menu"> <span class="triangle-2"></span> <div class="ichat"> <div class="ichat-messages"> <div class="ichat-title"> <div class="pull-left">New Messages</div> <div class="pull-right"><span>Update 4*</span></div> <div class="clear"></div> </div> <div class="imessage"> <div class="iavatar"><img src="images/users/1.jpg" alt=""></div> <div class="imes"> <div class="iauthor">Alan Cook</div> <div class="itext">All right. Thank you.</div> </div> <div class="idelete"><a href="#"><span><i class="icon-remove"></i></span></a></div> <div class="clear"></div> </div> <div class="imessage"> <div class="iavatar"><img src="images/users/6.jpg" alt=""></div> <div class="imes"> <div class="iauthor">Emma Clark</div> <div class="itext">Will you pay by credit card?</div> </div> <div class="idelete"><a href="#"><span><i class="icon-remove"></i></span></a></div> <div class="clear"></div> </div> <div class="imessage"> <div class="iavatar"><img src="images/users/2.jpg" alt=""></div> <div class="imes"> <div class="iauthor">Blake Washington</div> <div class="itext">Can I help you?</div> </div> <div class="idelete"><a href="#"><span><i class="icon-remove"></i></span></a></div> <div class="clear"></div> </div> <div class="ichat-link"><a href="#">InBox</a> <a href="#">OutBox</a> <a href="#">Spam</a> <a href="#">Trash</a> <div class="clear"></div> </div> </div> <a href="#" class="iview">View all</a><a href="#" class="imark">Mark all read</a> </div> </div> </div> <!--Messages END--> <!--Recent Activity Start--> <div class="btn-group pull-left hide-mobile" > <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <span class="notification">77</span><span class="triangle-1"></span><i class="icon-bell"></i><span class="caret"></span> </a> <div class="dropdown-menu"> <span class="triangle-2"></span> <div class="ichat"> <div class="ichat-messages"> <div class="ichat-title"> <div class="pull-left">Recent Activity</div> <div class="pull-right"><span>Update 14*</span></div> <div class="clear"></div> </div> <div class="r_activity"> <div class="imessage"> <div class="r_icon"><a href="#"><i class="icon-camera"></i></a></div> <div class="r_info"> <div class="r_name"><strong>Alan Cook</strong> a new photo</div> <div class="r_text"><i class="icon-time"></i> 3 hours ago</div> <div class="r_link"><a href="#">View...</a></div> </div> <div class="clear"></div> </div> <div class="imessage"> <div class="r_icon"><a href="#"><i class="icon-thumbs-up"></i></a></div> <div class="r_info"> <div class="r_name"><strong>Isaac Donaldson</strong> like: BMW E36</div> <div class="r_text"><i class="icon-time"></i> 5 hours ago</div> <div class="r_link"><a href="#">View...</a></div> </div> <div class="clear"></div> </div> <div class="imessage"> <div class="r_icon"><a href="#"><i class="icon-user"></i></a></div> <div class="r_info"> <div class="r_name">Registered new user</div> <div class="r_text"><i class="icon-time"></i> 15th of May - 06:21</div> <div class="r_link"><a href="#">View...</a></div> </div> <div class="clear"></div> </div> </div> </div> <a href="#" class="iview">View all</a><a href="#" class="imark">Mark all read</a> </div> </div> </div> <!--Recent Activity END--> </div><!--Notifications END--> <!--Button User Start--> <div class="btn-group pull-right" > <a class="btn btn-profile dropdown-toggle" id="button-profile" data-toggle="dropdown" href="#"> <span class="name-user"><strong>Welcome </strong>,</span> <span class="avatar"><img src="images/users/1.jpg" alt="" ></span> <span class="caret"></span> </a> <div class="dropdown-menu" id="prof_dropdown"> <div class="item_m"><span class="caret"></span></div> <ul class="clear_ul" > <li><a href="#"><i class="icon-globe"></i> Home</a></li> <li><a href="#"><i class="icon-comments"></i> Messages</a></li> <li><a href="change.php"><i class="icon-cog"></i>Password Change</a></li> <li><a href="logout.php"><i class="icon-off"></i> Sign Out</a></li> </ul> </div> </div> <!--Button User END--> </div> </div> <!--Header END--> <!--Sidebar Start--> <?php menu(); ?> <!--Sidebar END--> <!--Content Start--> <div id="content"> <!--SpeedBar Start--> <?php navigation(); ?> <!--SpeedBar END--> <!--Search Start--> <!--Search END--> <!--CONTENT MAIN START--> <?php add_product(); ?> <div class="box-content"> <form method="post" action="<?php $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" class="form-horizontal" onSubmit="return vl();"> <fieldset> <div class="control-group"> <label class="control-label" for="focusedInput">Code</label> <div class="controls"> <input class="title input-xlarge focused" name="code" id="code" type="text"> </div> </div> <div class="control-group"> <label class="control-label" for="focusedInput">Name</label> <div class="controls"> <input class="title input-xlarge focused" name="title" id="title" type="text"> </div> </div> <div class="control-group"> <label class="control-label" for="focusedInput"></label> <div style="float:left;width:600px;background:#fff;border:solid 1px #000;padding:10px 5px;"> <ul> <span>Please Select any Category to Insert product</span> <strong><li>Category</li></strong> <ul> <?php $ob = new database(); $ob->query("SELECT * FROM category"); if($ob->numRows() >= 1) { foreach($ob->rows() as $data) { $ob->query("SELECT * FROM sub_category WHERE cat_id='$data[id]'"); if($ob->numRows() >=1) { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" value="category.<?php echo $data['id'] ?>" disabled><span style="opacity:0.5;"><?php echo $data['title'] ?><span></li> <?php } else { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" value="category.<?php echo $data['id'] ?>"><?php echo $data['title'] ?></li> <?php } ?> <ul> <?php $ob->query("SELECT * FROM sub_category WHERE cat_id='$data[id]'"); foreach($ob->rows() as $sub) { $ob->query("SELECT * FROM sub_sub_category WHERE sub_id='$sub[id]'"); if($ob->numRows() >= 1) { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" value="sub_category.<?php echo $sub['id'] ?>" disabled><span style="opacity:0.5;"><?php echo $sub['title'] ?></span></li> <?php } else { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" value="sub_category.<?php echo $sub['id'] ?>"><?php echo $sub['title'] ?></li> <?php } ?> <ul> <?php $ob->query("SELECT * FROM sub_sub_category WHERE sub_id='$sub[id]'"); foreach($ob->rows() as $sbb) { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" value="sub_sub_category.<?php echo $sbb['id'] ?>"><?php echo $sbb['title'] ?></li> <?php } ?> </ul> <?php } ?> </ul> <?php } } else { echo 'No Category Added.'; } ?> </ul> </div> </div> <div class="control-group"> <label class="control-label" for="textarea2">Short Description</label> <div class="controls"> <textarea class="cleditor" name="s_desc" id="sdesc" rows="3"></textarea> </div> </div> <div class="control-group"> <label class="control-label" for="textarea2">Long Description</label> <div class="controls"> <textarea class="cleditor" name="l_desc" id="ldesc" rows="3"></textarea> </div> </div> <div class="control-group"> <label class="control-label" for="fileInput">Featured Image</label> <div class="controls"> <input class="input-file uniform_on" name="image[]" id="img" type="file" multiple> </div> </div> <div class="control-group"> <label class="control-label" for="focusedInput">Colors and Size</label> <div class="controls"> <input type="button" id="AddMoreFileBox" value="Add Attributes" class="btn btn-info custom"> </div> </div> <div id="InputsWrapper"> <div> <div class="control-group-custom" style="display:none;"> <label class="control-label" for="name">Color</label> <div class="controls yy"> <input class="input-xlarge focused" name="name[]" id="field_1" type="text" name="cust_name" placeholder="Add-on Name" /><a href="#" class="removeclass"></a> </div><br /> <label class="control-label" for="name">Size</label> <div class="controls yy"> <input class="input-xlarge focused" name="name[]" id="field_2" type="text" name="cust_price" placeholder="Add-on Price" /><a href="#" class="removeclass"></a><br /> </div><br /> <label class="control-label" for="name">price</label> <div class="controls yy"> <input class="input-xlarge focused" name="name[]" id="field_2" type="text" name="cust_price" placeholder="Add-on Price" /><a href="#" class="removeclass"></a><br /> <label class="control-label" for="name">Type</label> <div class="controls yy"> <input class="input-xlarge focused" name="name[]" id="field_2" type="text" name="cust_price" placeholder="Add-on Price" /><a href="#" class="removeclass"></a><br /> </div><br /> </div> </div> </div> <!--<span style="float:left;margin-left:160px;margin-bottom:20px;"> <input type="button" id="AddMoreFileBox" value="Add More" class="btn btn-info custom"> </span>--> <div class="form-actions"> <button type="submit" name="add_product" class="add_cat btn btn-primary">Add</button> <button class="btn">Cancel</button> </div> </fieldset> </form> </div> </div><!--/span--> </div><!--/row--> <!-- content ends --> </div><!--/#content.span10--> </div><!--/fluid-row--> <hr> <div class="modal hide fade" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Settings</h3> </div> <div class="modal-body"> <p>Here settings can be configured...</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> <!--Content END--> <!-- Le javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="js/jquery.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="js/bootstrap-colorpicker.js"></script> <script src="js/prettify.js"></script> <script src="js/jquery.flot.min.js"></script> <script src="js/jquery.flot.pie.js"></script> <script src="js/jquery.flot.orderBars.js"></script> <script src="js/jquery.flot.resize.js"></script> <script src="js/graphtable.js"></script> <script src="js/fullcalendar.min.js"></script> <script src="js/chosen.jquery.min.js"></script> <script src="js/autoresize.jquery.min.js"></script> <script src="js/jquery.tagsinput.min.js"></script> <script src="js/jquery.autotab.js"></script> <script src="js/elfinder.min.js" charset="utf-8"></script> <script src="js/tiny_mce.js"></script> <script src="jsjquery.validationEngine-en.js" charset="utf-8"></script> <script src="js/jquery.validationEngine.js" charset="utf-8"></script> <script src="js/jquery.jgrowl_minimized.js"></script> <script src="js/jquery.dataTables.min.js"></script> <script src="js/ZeroClipboard.js"></script> <script src="js/TableTools.js"></script> <script src="js/jquery.mousewheel.js"></script> <script src="js/jquery.jscrollpane.min.js"></script> <script src="js/jquery.stepy.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/raphael.2.1.0.min.js"></script> <script src="js/justgage.1.0.1.min.js"></script> <script src="js/glisse.js"></script> <script src="js/styleswitcher.js"></script> <script src="js/application.js"></script> <?php fancy(); ?> <script type="text/javascript"> $(document).ready(function() { var InputsWrapper = $("#InputsWrapper"); //Input boxes wrapper ID var AddButton = $("#AddMoreFileBox"); //Add button ID var x = InputsWrapper.length; //initlal text box count var FieldCount= document.getElementById("field_1").value; //to keep track of text box added var FieldCountd= document.getElementById("field_2").value; //to keep track of text box added $(AddButton).click(function (e) //on add input button click { //add input box $(InputsWrapper).append('<div style="margin:40px 0 20px 40px;"><label style="float: left;padding: 10px 74px 0 10px;">Color</label><input type="text" name="color[]" id="field_'+ FieldCount +'" value="'+ FieldCount +'" style="margin: 10px 0;"/><br /><label style="float: left;padding: 0 74px 0 10px;">Size</label><input type="text" name="size[]" id="field_'+ FieldCountd +'" value="'+ FieldCountd +'" style="margin: 0 5px 10px 4px;"/><br /><label style="float: left;padding: 0 10px;">price</label><input type="text" name="price[]" id="field_'+ FieldCountd +'" value="'+ FieldCountd +'" style="margin: 0 5px 10px 4px;"/><br /><label style="float: left;padding: 0 10px;">Type</label><input type="text" name="type[]" id="field_'+ FieldCountd +'" value="'+ FieldCountd +'" style="float: left;margin: 0 5px 0 4px;"/><a href="#" class="removeclass">×</a></div>'); x++; //text box increment return false; }); $("body").on("click",".removeclass", function(e){ //user click on remove text if( x > 1 ) { $(this).parent('div').remove(); //remove text box x--; //decrement textbox } return false; }) }); </script> <script type="text/javascript"> $(document).ready(function() { $(".custom").click(function() { $(".control-group-check").hide(); $("#InputsWrapper").show(); $(".cb").show(); }); }); </script> <script type="text/javascript"> function vl() { var error = ""; var code = document.getElementById("code").value; var name = document.getElementById("title").value; var cat = document.getElementById("optionsCheckbox2").value; var sdesc = document.getElementById("sdesc").value; var ldesc = document.getElementById("ldesc").value; var img = document.getElementById("img").value; if (code == "" || code == " " ) { error += "Code Must be Filled.\n"; } if (name == "" || name == " " ) { error += "Title Must be Filled.\n"; } if (cat == "" || cat == " " ) { error += "Please Select any Category.\n"; } if (sdesc == "" || sdesc == " " ) { error += "Short Description Must be Filled.\n"; } if (ldesc == "" || ldesc == " " ) { error += "Long Description Must be Filled.\n"; } if (img == "" || img == " " ) { error += "Please Select an Image.\n"; } if (error != "") { alert(error); return false; } else { return true; } } </script> </body> </html>