0) { $asin=$list[array_rand($list)]; echo $args['before_widget']; echo $args['before_title']; echo $title; echo $args['after_title']; ?>

=0;$j--) { $list[$j]=trim($list[$j]); if ($list[$j]=='') unset($list[$j]); } if (count($list)>0) $options['alist']=$list; else $options['alist']=$defaultList; update_option('kpg_amazon_widget', $options); } // get the current or default values for the form if (array_key_exists('title',$options)) $title = trim($options['title']); else $title='Amazon'; if (array_key_exists('affid',$options)) $affid = trim($options['affid']); else $affid='thenewjt30page'; if (array_key_exists('alist',$options)) $list = $options['alist']; else $list=$defaultList; if (trim($affid)=='') $affid='thenewjt30page'; if (trim($title)=='') $title='Amazon'; if (count($list)<=0) $list=$defaultList; ?>