<?php

include('views/_header.tpl.php');

?>

 <div class="home-feature-category" style="background:none; border:none;">
        <div class="container_12 clearfix">
        <div class="grid_8 marked-category">

		<h1 style="margin-bottom:0px;"><?php
		
		if ($logo) {
			echo "Edit";
		} else {
			echo "Add";
			$def = "/static/uploads/logos/placeholder.jpg";
		}
		
		?> Logo</h1>

		<form method="post" class="form form-profile" enctype="multipart/form-data" style="padding:25px 0px 0px;">
			<div class="row-item clearfix" style="padding-bottom:10px;">
				<label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Img:</label>
                <div class="val" style="margin-left:0px; margin-bottom:10px;">
                	<img src="<?php if($logo) { echo "" .$logo['image']. ""; } else { echo "" . $def . ""; } ?>" 
					onerror="this.src='/static/images/placeholderimgg.jpg'"
					style="height:30px; width:auto;" />
                    <p class="rs description-input"></p>
                </div>			
				<label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Title:</label>
                <div class="val" style="margin-left:0px;">
                	<input class="txt" type="text" name="title" value="<?= $logo['title'] ?>" >
                    <p class="rs description-input"></p>
                </div>
				
				<label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Text:</label>
                <div class="val" style="margin-left:0px;">
					<textarea class="txt" name="content"><?= $logo['content'] ?></textarea>
                    <p class="rs description-input"></p>
                </div>

				<label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Auth:</label>
                <div class="val" style="margin-left:0px;">
                	<input class="txt" type="text" name="author" value="<?= $logo['author'] ?>" >
                    <p class="rs description-input"></p>
                </div>				

                <label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Img:</label>
                <div class="val" style="margin-left:0px;">
                    <input class="txt" type="file" name="image" >
                    <p class="rs description-input"></p>
                </div>			
            </div>
            <br />
            <input type="submit" style="font-weight:300" class="btn btn-blue" /> 
			<input type="button" value="Cancel" class="btn btn-black" onclick="location = '/admin/'" />
		</form>

		</div>
	</div>
</div>

<?php

include('views/_footer.tpl.php');

?>