Edit
*/
-@media screen and (min-width: 400px) {
+@media screen and (max-width: 400px) {
.db form.edit {
- min-width: 40em;
+ max-width: 40em;
margin: 0 auto;
}
}
-
.db .edit .fields label {
width: 25%;
text-align: right;
text-align: left;
}
+.db form.edit .fields input, .db form.edit .fields textarea, .db form.edit .fields select {
+ width: 70%;
+}
+
.buttons {
margin: 0.5em auto 0 auto;
text-align: center;
public $name;
public $type;
public $null = true;
+ private $textarea_size = 300;
public $key = 0;
public $uniq = 0;
public $default;
public function html_edit($value) {
$size = ($this->size() and is_scalar($this->size())) ? $this->size() : 0;
- $tag = ( ($size>100) or preg_match('/^(text|binary)/i',$this->type) ) ? 'textarea' : 'input';
+ $tag = ( ($size>$this->textarea_size) or preg_match('/^(text|binary)/i',$this->type) ) ? 'textarea' : 'input';
return '<div class="label '.$this->name.'"><label for="'.$this->name.'">'.htmlspecialchars(prettyText($this->name)).'</label>'
.($this->extra
? '<span class="extra" id="'.$this->name.'">'.$this->out($value).'</span>'
}
}
+ $info['keys'] = array_combine($keys,$keys_values);
if (empty($fields)) $this->bye("Missing keys!");
if (empty($keys)) {
return false;
}
+ return true;
#debug($execute);
$info['rowCount'] = $query->rowCount();
return $query->rowCount();