<?php
class test extends BASE
{
	public  $cols = [
		"autoid" => ["type" => "autoid", "lbl" => "شماره", "val" => "", "list" => []],
		"id" => ["type" => "id", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text10" => ["type" => "text10", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text20" => ["type" => "text20",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text30" => ["type" => "text30",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text40" => ["type" => "text40",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text50" => ["type" => "text50",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text100" => ["type" => "text100",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text1004" => ["type" => "text100",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text200" => ["type" => "text200",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text400" => ["type" => "text400",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text" => ["type" => "text",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		
		"text_rich" => ["type" => "text_rich", "val" => "", "list" => [], "require" => true],
	
		"text_rich_2" => ["type" => "text_rich_2", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"text_code" => ["type" => "text_code", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"password" => ["type" => "password",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"pass" => ["type" => "pass",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"secret" => ["type" => "secret",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"pass" => ["type" => "pass",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"between" => ["type" => "between",  "val" => "25\n30", "list" => [10,750,5], "require" => true],
		"checkbox" => ["type" => "checkbox",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"btnCheckbox" => ["type" => "btnCheckbox",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"switch" => ["type" => "switch",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"radio" => ["type" => "radio",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"btnRadio" => ["type" => "btnRadio",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"file" => ["type" => "file",  "val" => "", "list" => ["csv"], "require" => true],
		"img" => ["type" => "img",  "val" => "", "list" => [], "require" => true],
	
		"album" => ["type" => "album",  "val" => "", "list" => ["showDir" => true, "media" => true], "require" => true],
		"bigfile" => ["type" => "bigfile",  "val" => "", "list" => ["showDir" => true, "folder" => "adminFolder", 'media' => true, 'manage' => false, 'extensions' => ['mp3', 'jpg', 'jpeg']], "require" => true],
	
		"url1" => ["type" => "url", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"number1" => ["type" => "number",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"double1" => ["type" => "double", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"color1" => ["type" => "color",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"time1" => ["type" => "time",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"date1" => ["type" => "date",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"select1" => ["type" => "select",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"searchSelect" => ["type" => "searchSelect",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"searchSelectInsertable" => ["type" => "searchSelectInsertable",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"multiSelect" => ["type" => "multiSelect",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"multiSelectInsertable" => ["type" => "multiSelectInsertable",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"tel" => ["type" => "tel",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"email" => ["type" => "email", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"range" => ["type" => "range",  "val" => "", "list" => [0,5,0.5], "require" => true],
		"rate" => ["type" => "rate",  "val" => "", "list" => [0,5,0.5], "require" => true],
		"bolean1" => ["type" => "bolean",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"timestamp1" => ["type" => "timestamp", "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"last_timestamp1" => ["type" => "last_timestamp",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"label" => ["type" => "label",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"hidden" => ["type" => "hidden",  "val" => "", "list" => ["فعال","غیر فعال"], "require" => true],
		"verifycode" => ["type" => "verifycode",  "val" => "", "list" => [9], "require" => false],
		"vezrifycodez" => ["type" => "verifycode",  "val" => "", "list" => [30], "require" => false],
	];
	public function __construct($conn)
	{
		parent::__construct($conn, __CLASS__, $this->cols);
		//$this->resetDatabase();
	}
}
