<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
	<div class="page-header">
		<div class="container-fluid">
			<div class="pull-right">
				<button type="submit" form="form-carousel" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button>
				<a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
			<h1><?php echo $heading_title; ?></h1>
			<ul class="breadcrumb">
				<?php foreach ($breadcrumbs as $breadcrumb) { ?>
				<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
				<?php } ?>
			</ul>
		</div>
	</div>
	<div class="container-fluid">
		<?php if ($error_warning) { ?>
		<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
			<button type="button" class="close" data-dismiss="alert">&times;</button>
		</div>
		<?php } ?>
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_edit; ?></h3>
			</div>
			<div class="panel-body">

				<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-carousel" class="form-horizontal">

					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-name"><span data-toggle="tooltip" title="<?php echo $help_name; ?>"><?php echo $entry_name; ?></span></label>
						<div class="col-sm-10">
							<input type="text" name="name" value="<?php echo $name; ?>" placeholder="<?php echo $entry_name; ?>" id="input-name" class="form-control" />
							<?php if ($error_name) { ?>
							<div class="text-danger"><?php echo $error_name; ?></div>
							<?php } ?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-banner"><span data-toggle="tooltip" title="<?php echo $help_banner; ?>"><?php echo $entry_banner; ?></span></label>
						<div class="col-sm-10">
							<select name="banner_id" id="input-banner" class="form-control">
								<?php foreach ($banners as $banner) { ?>
								<?php if ($banner['banner_id'] == $banner_id) { ?>
								<option value="<?php echo $banner['banner_id']; ?>" selected="selected"><?php echo $banner['name']; ?></option>
								<?php } else { ?>
								<option value="<?php echo $banner['banner_id']; ?>"><?php echo $banner['name']; ?></option>
								<?php } ?>
								<?php } ?>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-screen"><span data-toggle="tooltip" title="<?php echo $help_screen; ?>"><?php echo $entry_screen; ?></span></label>
						<div class="col-sm-10">
							<select name="screen" id="input-screen" class="form-control">
								<option value="" <?php if ($screen == '') { echo('selected'); } ?> ><?php echo $text_screen_all; ?></option>
								<option value="lg" <?php if ($screen == 'lg') { echo('selected'); } ?> ><?php echo $text_screen_lg; ?></option>
								<option value="md" <?php if ($screen == 'md') { echo('selected'); } ?> ><?php echo $text_screen_md; ?></option>
								<option value="sm" <?php if ($screen == 'sm') { echo('selected'); } ?> ><?php echo $text_screen_sm; ?></option>
								<option value="n-lg" <?php if ($screen == 'n-lg') { echo('selected'); } ?> ><?php echo $text_screen_except_lg; ?></option>
								<option value="n-md" <?php if ($screen == 'n-md') { echo('selected'); } ?> ><?php echo $text_screen_except_md; ?></option>
								<option value="n-sm" <?php if ($screen == 'n-sm') { echo('selected'); } ?> ><?php echo $text_screen_except_sm; ?></option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-columns"><span data-toggle="tooltip" title="<?php echo $help_columns; ?>"><?php echo $entry_columns; ?></span></label>
						<div class="col-sm-10">
							<select name="columns" id="input-columns" class="form-control">
								<option value="0"><?php echo $text_columns_nd; ?></option>
								<option value="6" <?php if ($columns == '6') { echo('selected'); } ?> >100%</option>
								<option value="5" <?php if ($columns == '5') { echo('selected'); } ?> >83%</option>
								<option value="4" <?php if ($columns == '4') { echo('selected'); } ?> >66%</option>
								<option value="3" <?php if ($columns == '3') { echo('selected'); } ?> >50%</option>
								<option value="2" <?php if ($columns == '2') { echo('selected'); } ?> >33%</option>
								<option value="1" <?php if ($columns == '1') { echo('selected'); } ?> >16%</option>
							</select>
							<?php if ($error_columns) { ?>
							<div class="text-danger"><?php echo $error_columns; ?></div>
							<?php } ?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-cssclass"><span data-toggle="tooltip" title="<?php echo $help_cssclass; ?>"><?php echo $entry_cssclass; ?></span></label>
						<div class="col-sm-10">
							<input type="text" name="cssclass" value="<?php echo $cssclass; ?>" placeholder="<?php echo $entry_cssclass; ?>" id="input-cssclass" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-width"><span data-toggle="tooltip" title="<?php echo $help_width; ?>"><?php echo $entry_width; ?></span></label>
						<div class="col-sm-10">
							<input type="text" name="width" value="<?php echo $width; ?>" placeholder="<?php echo $entry_width; ?>" id="input-width" class="form-control" />
							<?php if ($error_width) { ?>
							<div class="text-danger"><?php echo $error_width; ?></div>
							<?php } ?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-height"><span data-toggle="tooltip" title="<?php echo $help_height; ?>"><?php echo $entry_height; ?></span></label>
						<div class="col-sm-10">
							<input type="text" name="height" value="<?php echo $height; ?>" placeholder="<?php echo $entry_height; ?>" id="input-height" class="form-control" />
							<?php if ($error_height) { ?>
							<div class="text-danger"><?php echo $error_height; ?></div>
							<?php } ?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-timeout"><span data-toggle="tooltip" title="<?php echo $help_timeout; ?>"><?php echo $entry_timeout; ?></span></label>
						<div class="col-sm-10">
							<input type="text" name="timeout" value="<?php echo $timeout; ?>" placeholder="<?php echo $entry_timeout; ?>" id="input-timeout" class="form-control" />
							<?php if ($error_timeout) { ?>
							<div class="text-danger"><?php echo $error_timeout; ?></div>
							<?php } ?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="input-status"><?php echo $entry_status; ?></label>
						<div class="col-sm-10">
							<select name="status" id="input-status" class="form-control">
								<?php if ($status) { ?>
								<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
								<option value="0"><?php echo $text_disabled; ?></option>
								<?php } else { ?>
								<option value="1"><?php echo $text_enabled; ?></option>
								<option value="0" selected="selected"><?php echo $text_disabled; ?></option>
								<?php } ?>
							</select>
						</div>
					</div>

				</form>

			</div>
		</div>
	</div>
</div>
<?php echo $footer; ?>