Jump to content

Frieling

Members
  • Posts

    28
  • Joined

  • Last visited

Contact Methods

  • MSN
    sylvester225@hotmail.com
  • Website URL
    http://www.fire-at-enemy.net
  • ICQ
    0

Frieling's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well I am building this tool for the clan I am in to keep track of each member. I decided to do a 2 panel layout. Far left panel, is the navigation(Add soldier, Modify soldier). and the right panel is where you can add the soldier form, and modify the soldier form. But I am having troubles getting the div to display. They are all located inside divs like so(index.php): <html><head> <title>[1stAD] MILES</title> <link rel="stylesheet" type="text/css" href="includes/main.css"> <script type="text/javascript" src="includes/js/jquery.min.js"></script> <script type="text/javascript"> function mod_soldier(){ if ($('#mod_form').css('display') == 'none'){ $('#mod_form').fadeIn('slow'); } } </script></head>]<body> <div class="header"></div> <div class="content"> <!--Left Navigation Panel Start--> <div class="Nav"> <ul> <li><a href="javascript:mod_soldier()" id="mod_soldier" class="button">Modify Soldier</a></li> <li><a href="#" id="add_link" class="button">Add New Soldier</a></li> </ul> </div> <!--Left Navigation Panel Start--> <!--<div class="SoldierList"> </div>--> <!--Right Side Panel Start--> <div class="SoldierInfo"> <!--Modify Soldier Form Start--> <div class="mod_form" style="display:none;"> <form action="" method=""> Search For Soldier: <input type="text" /> </form> </div> <!--Modify Soldier Form End--> </div> <!--Rigt Side Panel End--></div> <div class="footer"> Copyright © 2013-<?php echo "".date('Y').""; ?>, 1st Armored Division. All Rights Reserved<br /> Memebership Information Logistics Electronic System 1.0</div></body></html> And then here is what it looks like:
  2. can you give me an example of where i would use it at?
  3. Alright, I am trying to create a code to scan all text files in a directory, then each line in the text files have sections seperated by a "|". I need to insert each section in a line into an array, but i am totally stumpt. This is what i have: <?php $path = './';$findThisString = '|';$dir = dir($path);// Get next file/dir name in directorywhile (false !== ($file = $dir->read())){ if ($file != '.' && $file != '..') { // Is this entry a file or directory? if (is_file($path . '/' . $file)) { // Its a file, yay! Lets get the file's contents $data = file_get_contents($path . '/' . $file); // Is the str in the data (case-insensitive search) if (stripos($data, $findThisString) !== false) { $file2 = fopen($file, "r"); while (!feof($file2)) { $results = explode("|",fgets($file2)); } fclose($file2); for($i = 0; $i < count($results); $i++) { echo $results[$i]; unset($results[$i]); } } } }}$dir->close();?> Any ideas?
×
×
  • Create New...