10 changed files with 84 additions and 44 deletions
			
			
		@ -1,13 +1,13 @@ | 
				
			|||||||
<?php | 
					<?php | 
				
			||||||
# | 
					# | 
				
			||||||
function dohelp($data) | 
					function dohelp($data, $user) | 
				
			||||||
{ | 
					{ | 
				
			||||||
 return '<h1>Helpless</h1>Helpless'; | 
					 return '<h1>Helpless</h1>Helpless'; | 
				
			||||||
} | 
					} | 
				
			||||||
# | 
					# | 
				
			||||||
function show_help($menu, $name) | 
					function show_help($menu, $name, $user) | 
				
			||||||
{ | 
					{ | 
				
			||||||
 gopage(NULL, 'dohelp', $menu, $name); | 
					 gopage(NULL, 'dohelp', $menu, $name, $user); | 
				
			||||||
} | 
					} | 
				
			||||||
# | 
					# | 
				
			||||||
?> | 
					?> | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,44 @@ | 
				
			|||||||
 | 
					<?php | 
				
			||||||
 | 
					# | 
				
			||||||
 | 
					function doworkers($data, $user) | 
				
			||||||
 | 
					{ | 
				
			||||||
 | 
					 $pg = '<h1>Workers</h1>'; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 $rep = getWorkers($user); | 
				
			||||||
 | 
					 $ans = repDecode($rep); | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 $pg .= "<table callpadding=0 cellspacing=0 border=0>\n"; | 
				
			||||||
 | 
					 $pg .= "<tr class=title>"; | 
				
			||||||
 | 
					 $pg .= "<td class=dl>Name</td>"; | 
				
			||||||
 | 
					 $pg .= "<td class=dl>Difficulty</td>"; | 
				
			||||||
 | 
					 $pg .= "<td class=dr>Idle Notifications</td>"; | 
				
			||||||
 | 
					 $pg .= "<td class=dr>Idle Notification Time</td>"; | 
				
			||||||
 | 
					 $pg .= "</tr>\n"; | 
				
			||||||
 | 
					 if ($ans['STATUS'] == 'ok') | 
				
			||||||
 | 
					 { | 
				
			||||||
 | 
						$count = $ans['rows']; | 
				
			||||||
 | 
						for ($i = 0; $i < $count; $i++) | 
				
			||||||
 | 
						{ | 
				
			||||||
 | 
							if (($i % 2) == 0) | 
				
			||||||
 | 
								$row = 'even'; | 
				
			||||||
 | 
							else | 
				
			||||||
 | 
								$row = 'odd'; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							$pg .= "<tr class=$row>"; | 
				
			||||||
 | 
							$pg .= '<td class=dl>'.$ans['paydate'.$i].'</td>'; | 
				
			||||||
 | 
							$pg .= '<td class=dl>'.$ans['payaddress'.$i].'</td>'; | 
				
			||||||
 | 
							$pg .= '<td class=dr>'.btcfmt($ans['amount'.$i]).'</td>'; | 
				
			||||||
 | 
							$pg .= "</tr>\n"; | 
				
			||||||
 | 
						} | 
				
			||||||
 | 
					 } | 
				
			||||||
 | 
					 $pg .= "</table>\n"; | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 return $pg; | 
				
			||||||
 | 
					} | 
				
			||||||
 | 
					# | 
				
			||||||
 | 
					function show_workers($menu, $name, $user) | 
				
			||||||
 | 
					{ | 
				
			||||||
 | 
					 gopage(NULL, 'doworkers', $menu, $name, $user); | 
				
			||||||
 | 
					} | 
				
			||||||
 | 
					# | 
				
			||||||
 | 
					?> | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue