Example #1
0
     echo " <img src=\"img/lock.gif\" alt=\"Trusted\">";
 }
 if ($erej["working"] == 1) {
     echo " <img src=\"img/active.gif\" alt=\"Active\" title=\"" . nicenum($erej["speed"], 100000, 1000) . "H/s\">";
 }
 if ($erej["active"] == 0) {
     echo " <img src=\"img/pause.gif\" alt=\"Paused\">";
 }
 echo "</td><td>";
 echo $oses[$erej["os"]];
 echo "<td>" . $erej["cputype"] . "-bit</td><td>";
 echo $platforms[$erej["gpubrand"]];
 echo "</td><td>" . $erej["gpudriver"] . "</td><td>";
 $gpus = explode($separator, $erej["gpus"]);
 foreach ($gpus as $gpu) {
     shortenstring($gpu, 32);
     echo "<br>";
 }
 echo "</td><td>" . $erej["hcversion"] . "</td><td>" . $erej["lastact"] . " at " . date($config["timefmt"], $erej["lasttime"]) . "<br>IP: " . $erej["lastip"] . "</td><td>";
 $task = $erej["task"];
 echo "<form id=\"assign{$id}\" action=\"{$myself}?a=agentassign\" method=\"POST\">";
 echo "<input type=\"hidden\" name=\"return\" value=\"a=agents\">";
 echo "<input type=\"hidden\" name=\"agent\" value=\"{$id}\">";
 echo "<select name=\"task\" size=\"1\" onChange=\"javascript:document.getElementById('assign{$id}').submit();\"><option value=\"\">(unassigned)</option>";
 $kve = mysqli_query_wrapper($dblink, "SELECT id,name FROM tasks WHERE hashlist IS NOT NULL ORDER BY id ASC");
 while ($ere = mysqli_fetch_array($kve, MYSQLI_ASSOC)) {
     $idu = $ere["id"];
     $nameu = $ere["name"];
     echo "<option value=\"{$idu}\"";
     if ($idu == $task) {
         echo " selected";
Example #2
0
					{
						echo "-";
					}
					else
					{
						echo $nextsectionavg;
					}
					?>
				</td>
				<?
				}
				?>
				</tr>
				<?
				
					 $highchartsliptestnamearr[]="'".shortenstring($sliptestname,16)."'";
						if($nextsectionid>0)
						{
							$highchartsectionavgarr[]=$sectionavg;
						}
						else
						{
							$highchartsectionavgarr[]="{y: $sectionavg, color: '".$colorarr[($portioncount-1)%10]."'}";
						}
					 $highchartnextsectionavgarr[]=$nextsectionavg;
				
				}
			}
			$highchartsliptestname=implode(',',$highchartsliptestnamearr);
			$highchartsectionavg=implode(',',$highchartsectionavgarr);
			$highchartnextsectionavg=implode(',',$highchartnextsectionavgarr);
					$portionname=$rowportion['Portion'];
					$markavg=getstudentportionaverage($schoolid,$classid,$sectionid,$subjectid,$newsubjectid,$studentid,$portionid);
				if($markavg!=0)
				{
			?>
			<tr>
				<td>
					<? echo $portionname;?>
				</td>
				<td class='<? echo gettdcolor($markavg)?> center'>
					<? echo $markavg;?>
				</td>
			</tr>
			<?
			$portioncount++;
			$highchartportionarr[]="'".shortenstring($portionname,15)."'";
			$highchartmarkarr[]="{y: $markavg, color: '".getgraphcolor($markavg)."'}";
			
			
					
				}
			}
			
			$highchartportion=implode(',',$highchartportionarr);
			$highchartmark=implode(',',$highchartmarkarr);
			
			
			
		?>				
	</table>		
</div>