function __construct($name, &$smarty, $action = null) { parent::__construct($name, &$smarty, $action); $this->add_input(new kdb_input("name", &$smarty)); $this->add_input(new kdb_input("lname", &$smarty)); $this->add_input(new kdb_input("mname", &$smarty)); $this->add_input(new kdb_input("nik", &$smarty)); $this->add_input(new kdb_input("jtitle", &$smarty)); $this->add_input(new kdb_input("htel", &$smarty)); $this->add_input(new kdb_input("wtel", &$smarty)); $this->add_input(new kdb_input("fax", &$smarty)); $this->add_input(new kdb_input("mobile", &$smarty)); $this->add_input(new kdb_input("pager", &$smarty)); $this->add_input(new kdb_input("email", &$smarty)); $this->add_input(new kdb_input("cother", &$smarty)); $this->add_input(new kdb_input("haddress", &$smarty)); $this->add_input(new kdb_input("city", &$smarty)); $this->add_input(new kdb_input("zip", &$smarty)); $this->add_input(new kdb_input("state", &$smarty)); $this->add_input(new kdb_input("country", &$smarty)); $this->add_input(new kdb_input("notess", &$smarty)); $this->add_input(new kdb_input("web", &$smarty)); $this->add_input(new kcheckbox("private", &$smarty)); }
function __construct($name, &$smarty, $maxyear, $minyear) { $this->minyear = $minyear; $this->maxyear = $maxyear; parent::__construct($name, &$smarty); $this->year =& $this->add_input(new kdb_input("wtyear", &$smarty, new kvint_min_max($minyear, $maxyear), date("Y"))); $this->month =& $this->add_input(new kdb_input("wtmonth", &$smarty, new kvint_min_max(1, 12), date("m"))); }