]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('function.php'); //require('database.php'); head(); ?> <body> <!-- topbar starts --> <?php navigation(); ?> <!-- topbar ends --> <div class="container-fluid"> <div class="row-fluid"> <!-- left menu starts --> <?php menu(); ?> <!-- left menu ends --> <div id="content" class="span10"> <!-- content starts --> <div> <ul class="breadcrumb"> <li> <a href="#">Home</a> <span class="divider">/</span> </li> <li> <a href="#">Forms</a> </li> </ul> </div> <div class="row-fluid sortable"> <div class="box span12"> <div class="box-header well" data-original-title> <h2><i class="icon-edit"></i> Form Elements</h2> <div class="box-icon"> <a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a> <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> <a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a> </div> </div> <div class="box-content"> <?php add_cat(); ?> <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data"> <fieldset> <div class="control-group"> <label class="control-label" for="focusedInput">Name</label> <div class="controls"> <input class="title input-xlarge focused" name="title" id="focusedInput" type="text"> </div> </div> <div class="control-group"> <label class="control-label" for="focusedInput"></label> <div style="width:600px;background:#eee;border:solid 1px #000;padding:10px 5px;"> <ul> <strong>Note: </strong>In Case to Create Main Category.Don't Select Anyone. <strong><li>Category</li></strong> <ul> <?php $ob = new database(); $ob->query("SELECT * FROM category"); if($ob->numRows() >= 1) { foreach($ob->rows() as $data) { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" v="<?php echo $data['id'] ?>" nv="category" value="category.<?php echo $data['id'] ?>"><?php echo $data['title'] ?></li> <ul> <?php $ob->query("SELECT * FROM sub_category WHERE cat_id='$data[id]'"); foreach($ob->rows() as $sub) { ?> <li><input type="radio" name="abc" id="optionsCheckbox2" v="<?php echo $sub['id'] ?>" nv="sub_category" value="sub_category.<?php echo $sub['id'] ?>"><?php echo $sub['title'] ?></li> <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" v="<?php echo $sbb['id'] ?>" nv="sub_sub_category" 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 class="control-group"> <label class="control-label" for="fileInput">Choose Images</label> <div class="controls"> <div class="uploader" id="uniform-fileInput"> <input class="input-file uniform_on" id="img" type="file" name="image" size="19" style="opacity: 0;"><span class="filename">No file selected</span><span class="action">Choose File</span> </div> </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="textarea2" rows="3"></textarea> </div> </div> <div class="form-actions"> <button type="submit" name="add_cat" class="add_cat btn btn-primary" onClick="return vl();">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> <?php footer(); ?> </div><!--/.fluid-container--> </body> <script type="text/javascript"> $(document).ready(function() { var mm = 0; var mn = 0; $("input[type=radio]").click(function() { mm = $(this).attr('v'); mn = $(this).attr('nv'); }); $(".add_cat").click(function() { var nnn = $(".title").val(); //alert(nnn+"\n"+mn); //parent.location.assign("add_cat.php?id="+mm+"&name="+nnn+"&table="+mn+""); }); }); </script> </html>