
<h1>Dodavanje projekta</h1>
<div id="uvbody-content">
    <form id="add-project" class="" method="post" action="">
    	

        <div id="edit">
            <div id="edit-content">
            <select id="clientset" name="clientset">
                
                <option value="default">Izaberi klijenta</option>

            <?php 
				
				$database->setBareQuery("SELECT id, name FROM client ORDER BY name");

				$clientid = $database->loadResultArray(0);
		
				$clientname = $database->loadResultArray(1);
		
				for($z = 0; $z < count($clientid); $z++): 
			
			?>
            <option value="<?=$clientid[$z]?>"<?php if($clientid[$z] == $parent[0]) { echo " selected = 'selected'";}?>><?=$clientname[$z]?></option>
            
            <?php endfor; ?>
            
		</select><br /><br />
                <input type="text" name="projectname" id="projectname" value="Ime projekta" />

                
                <p class="show-proj-number">Broj projekta <?=date("y")?><span id="num-holder"></span></p>
                
                <input type="text" name="offerno" id="offerno" value="Broj ponude" />
                
                
                 <input type="submit" id="user-edit-submit-2" value="Snimi" />
            </div>
        </div>      
        <div class="clear"></div>
    </form>
</div>