Ejemplo n.º 1
0
 /**
  * set indent pattern
  *
  * @param string $pattern
  */
 public static function set_indent_pattern($pattern)
 {
     self::$indent_pattern = $pattern;
 }
Ejemplo n.º 2
0
 /**
  * @param string $for
  * @param array $atts
  * @param bool $echo
  *
  * @return string
  */
 public static function label($for = '', $atts = array(), $echo = false)
 {
     $atts = parent::atts_default(array('for' => !empty($for) ? $for : ''), $atts);
     $return = parent::gen('label', $atts);
     if ($echo) {
         echo $return;
     }
     return $return;
 }
Ejemplo n.º 3
0
?>
				</div>
				<div id="content-add-new">
					<div id="table">
						<table>
							<thead>
								<tr>
									<th>TITEL</th>
									<th>BESKRIVNING</th>
									<th>BETYG</th>
									<th></th>
								</tr>
							</thead>
							<tbody>
								<?php 
echo HtmlGen::getMovies('table');
?>
							</tbody>
						</table>
					</div>
					<form id="add-form">
						<label for="movie-title">Lägg till ny film</label>
						<input type="text" name="movie-title" id="movie-title" placeholder="Titel"/>
						<textarea name="movie-desc" id="movie-desc" placeholder="Beskrivning"></textarea>
						<select name="movie-rating" id="movie-rating">
							<option value="" disabled selected>Betyg</option>
							<option value="1">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>