Viewing File server/base/screen.inc.php of 1.10.2a
|
\n";
96: echo "".$title."";
97: if ($pagemenu!="") echo " ".PageMenu($pagemenu,$pagemenumode).""; 98: echo " | \n";
99: echo "\n"; 100: echo $menu[$menuindex]; 101: echo " |
"; 103: //echo " |
\n"; 146: echo " | \n"; 147: echo $title; 148: echo "\n | |
\n"; 150: } 151: 152: function End_Round() 153: { 154: echo "\n |
".$fnIcons[$a]." "; 415: if ($a==$fnIcon_DefNode) echo "Node Default "; 416: if ($a==$fnIcon_DefGroup) echo "Group Default"; 417: echo " | ";
418: $cc++;
419: if ($cc>=5)
420: {
421: echo "
".$icon." "; 451: if ($icon==$fnIcons[$fnIcon_DefNode]) echo "".$NATS->Lang->Item("node.default")." "; 452: if ($a==$fnIcons[$fnIcon_DefGroup]) echo "".$NATS->Lang->Item("group.default").""; 453: echo " | ";
454: $cc++;
455: if ($cc>=5)
456: {
457: echo "
";
497: if ($jslink) echo "";
498: else echo "";
499: echo "";
500: echo "";
501: if ($text)
502: {
503: if ($nodename=="") $nodename=$nodeid;
504:
505: //$words=explode(" ",$nodename);
506:
507: // messy but there you go...
508:
509: $max_on_line=7;
510: $max_lines=2;
511: $len=strlen($nodename);
512: $out="";
513: $linecount=0;
514: $charcount=0;
515: for ($a=0; $a<$len; $a++)
516: {
517:
518: $char=$nodename[$a];
519:
520: if ($char==" ")
521: {
522: $linecount++;
523: $charcount=0;
524: }
525: else $charcount++;
526:
527: if ($charcount>=$max_on_line)
528: {
529: $a=$len+10;
530: $out.="..";
531: }
532: else if ($linecount>=$max_lines)
533: {
534: $a=$len+10;
535: $out.="..";
536: }
537: else $out.=$char;
538:
539: }
540: //if ($a==($len+10)) $out.="..";
541: $nodename=$out;
542:
543: $size=10;
544:
545: /* -- size-based
546: $len=strlen($nodename);
547: if ($len<9) $size=10;
548: else if ($len<15) $size=8;
549: else if ($len<20) $size=7;
550: else
551: {
552: $size=6;
553: $nodename=substr($nodename,0,18)."..";
554: }
555: */
556:
557: echo " ".$nodename.""; 558: } 559: echo " |
";
569: echo "";
570: echo "";
571: echo "";
572: if ($text)
573: {
574: echo " ".$groupname.""; 575: } 576: echo " |
";
586: echo "
| ";
594: //echo ""; 595: //echo ""; 596: //echo " | "; 597: echo "
";
609: echo "
| ";
621: //echo ""; 622: //echo ""; 623: //echo " | "; 624: echo "