44 printf(
'<input type="button" class="smallbutton " id="%s_bt" value="%s" onclick="document.getElementById(\'select_dialog%s\').style.display=\'block\'">',
45 $this->
id, $this->
value,$this->
id);
46 printf(
'<div class="inner_box" id="select_dialog%s" style="display:none;position:fixed;top:10rem">',
$id);
49 $list_id=sprintf(
'%s_list',$this->
id);
51 printf(
'<input type="hidden" id="%s" name="%s" value="%s">', $this->
id,
52 $this->
id, $this->default_value);
53 printf(
'<div class=" " id="select_box%s" style="%s">',
54 $this->
id, $this->style_box);
61 printf(
'<ul class="tab_row" id="%s">',$list_id);
62 for (
$i=0;
$i<count($this->item);
$i++)
64 if ($this->item[
$i][
'type']==
"url")
66 printf(
'<li><a href="%s">%s</a></li>', $this->item[
$i][
'url'],
67 $this->item[
$i][
'label']);
70 if ($this->item[
$i][
'type']==
"javascript")
72 printf(
'<li><a href="javascript:void(0)" onclick="%s">%s</a></li>',
73 $this->item[
$i][
'javascript'], $this->item[
$i][
'label']);
75 else if ($this->item[
$i][
'type']==
"value")
77 printf(
'<li><a href="javascript:void(0)" onclick="%s">%s</a></li>',
78 $this->item[
$i][
'javascript'], $this->item[
$i][
'label']);
80 else if ($this->item[
$i][
'type']==
"input") {
82 $ok->value=$this->item[
$i][
'label'];
83 $ok->javascript=$this->item[
$i][
'input']->javascript;
84 printf(
'<li> %s %s</li>',
85 $this->item[
$i][
'input']->
input(),
Display a kind of select.
__construct($p_id, $value)