425 |
OpenTable(); |
OpenTable(); |
426 |
echo "<center><br>"; |
echo "<center><br>"; |
427 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
428 |
echo "<b>"."VARNING: Är du säker på att du vill radera den här kategorin och ALLA dess länkar?"."</b><br><br><font color=Black>"; |
echo "<b>VARNING: Är du säker på att du vill radera den här kategorin och ALLA dess länkar?</b><br><br><font color=Black>"; |
429 |
} |
} |
430 |
echo "[ <a href=admin.php?op=LinksDelCat&cid=$cid&sid=$sid&sub=$sub&ok=1>"."Ja"."</a> | <a href=admin.php?op=links>"."Nej"."</a> ]<br><br>"; |
echo "[ <a href=admin.php?op=LinksDelCat&cid=$cid&sid=$sid&sub=$sub&ok=1>Ja</a> | <a href=admin.php?op=links>Nej</a> ]<br><br>"; |
431 |
echo "</TD></TR></TABLE></TD></TR></TABLE>"; |
echo "</TD></TR></TABLE></TD></TR></TABLE>"; |
432 |
include("footer.php"); |
include("footer.php"); |
433 |
} |
} |
447 |
OpenTable(); |
OpenTable(); |
448 |
echo "<center><br>"; |
echo "<center><br>"; |
449 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
450 |
echo "<b>"."FEL: Kategorin"." $title "."existerar redan!"."</b><br><br>\n"; |
echo "<b>FEL: Kategorin $title existerar redan!</b><br><br>\n"; |
451 |
CloseTable(); |
CloseTable(); |
452 |
include("footer.php"); |
include("footer.php"); |
453 |
} else { |
} else { |
465 |
OpenTable(); |
OpenTable(); |
466 |
echo "<center><br>"; |
echo "<center><br>"; |
467 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
468 |
echo "<b>"."FEL: Underkategorin"." $title "."existerar redan!"."</b><br><br>\n"; |
echo "<b>FEL: Underkategorin $title existerar redan!</b><br><br>\n"; |
469 |
CloseTable(); |
CloseTable(); |
470 |
include("footer.php"); |
include("footer.php"); |
471 |
} else { |
} else { |
485 |
OpenTable(); |
OpenTable(); |
486 |
echo "<center><br>"; |
echo "<center><br>"; |
487 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
488 |
echo "<b>"."FEL: Den här URL:en finns redan i databasen!"."</b><br><br>\n"; |
echo "<b>FEL: Den här URL:en finns redan i databasen!</b><br><br>\n"; |
489 |
CloseTable(); |
CloseTable(); |
490 |
include("footer.php"); |
include("footer.php"); |
491 |
} else { |
} else { |
497 |
OpenTable(); |
OpenTable(); |
498 |
echo "<center><br>"; |
echo "<center><br>"; |
499 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
500 |
echo "<b>"."FEL: Du måste skriva en TITEL på din URL!"."</b><br><br>\n"; |
echo "<b>FEL: Du måste skriva en TITEL på din URL!</b><br><br>\n"; |
501 |
CloseTable(); |
CloseTable(); |
502 |
include("footer.php"); |
include("footer.php"); |
503 |
} |
} |
508 |
OpenTable(); |
OpenTable(); |
509 |
echo "<center><br>"; |
echo "<center><br>"; |
510 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
511 |
echo "<b>"."FEL: Du måste skriva en URL för din URL!"."</b><br><br>\n"; |
echo "<b>FEL: Du måste skriva en URL för din URL!</b><br><br>\n"; |
512 |
CloseTable(); |
CloseTable(); |
513 |
include("footer.php"); |
include("footer.php"); |
514 |
} |
} |
519 |
OpenTable(); |
OpenTable(); |
520 |
echo "<center><br>"; |
echo "<center><br>"; |
521 |
echo "<font size=3 color=Red>"; |
echo "<font size=3 color=Red>"; |
522 |
echo "<b>"."FEL: Du måste skriva en BESKRIVNING av din URL!"."</b><br><br>\n"; |
echo "<b>FEL: Du måste skriva en BESKRIVNING av din URL!</b><br><br>\n"; |
523 |
CloseTable(); |
CloseTable(); |
524 |
include("footer.php"); |
include("footer.php"); |
525 |
} |
} |
539 |
OpenTable(); |
OpenTable(); |
540 |
echo "<center><br>"; |
echo "<center><br>"; |
541 |
echo "<font size=3>"; |
echo "<font size=3>"; |
542 |
echo ""."Ny länk adderad till databasen"."<br><br>\n"; |
echo "Ny länk adderad till databasen<br><br>\n"; |
543 |
CloseTable(); |
CloseTable(); |
544 |
if ($new==1) { |
if ($new==1) { |
545 |
mysql_query("delete from links_newlink where lid=$lid"); |
mysql_query("delete from links_newlink where lid=$lid"); |
546 |
if ($email=="") { |
if ($email=="") { |
547 |
} else { |
} else { |
548 |
$subject = "Din länk på"." $sitename"; |
$subject = "Din länk på $sitename"; |
549 |
$message = "Hallå"." $name:\n\n"."Vi har godkänt din länk för vår sökmotor."."\n\n"."Sidrubrik: "."$title\n"."Sidans URL: "."$url\n"."Beskrivning: "."$description\n\n\n"."Du kan besöka vår sökmotor på:"." ${nuke_url}links.php\n\n"."Tack för ditt bidrag!"."\n\n$sitename "."team."; |
$message = "Hallå $name:\n\n". |
550 |
|
"Vi har godkänt din länk för vår sökmotor.\n\n". |
551 |
|
"Sidrubrik: $title\n". |
552 |
|
"Sidans URL: $url\n". |
553 |
|
"Beskrivning: $description\n\n\n". |
554 |
|
"Du kan besöka vår sökmotor på: ${nuke_url}links.php". |
555 |
|
"\n\nTack för ditt bidrag!\n\n". |
556 |
|
"$sitename team."; |
557 |
$from = $adminmail; |
$from = $adminmail; |
558 |
mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); |
mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); |
559 |
} |
} |
573 |
dbconnect(); |
dbconnect(); |
574 |
OpenTable(); |
OpenTable(); |
575 |
echo " |
echo " |
576 |
<font size=4><center><b>"."HTTP referers"."</b></center></font> |
<font size=4><center><b>HTTP referers</b></center></font> |
577 |
<center><b>("."Vem länkar till vår sajt?".")</b></center><br><br> |
<center><b>(Vem länkar till vår sajt?)</b></center><br><br> |
578 |
<table border=0 width=100%>"; |
<table border=0 width=100%>"; |
579 |
$hresult = mysql_query("select rid, url from referer"); |
$hresult = mysql_query("select rid, url from referer"); |
580 |
while(list($rid, $url) = mysql_fetch_row($hresult)) { |
while(list($rid, $url) = mysql_fetch_row($hresult)) { |
604 |
include ("header.php"); |
include ("header.php"); |
605 |
GraphicAdmin(); |
GraphicAdmin(); |
606 |
dbconnect(); |
dbconnect(); |
607 |
echo "<font size=4><center><b>"."Banneradministration"."</b></center><br><br>"; |
echo "<font size=4><center><b>Banneradministration</b></center><br><br>"; |
608 |
// Banners List |
// Banners List |
609 |
echo "<a name=top>"; |
echo "<a name=top>"; |
610 |
OpenTable(); |
OpenTable(); |
611 |
echo "<font size=3> |
echo "<font size=3> |
612 |
<center><b>"."Aktiva banners"."</b></center><br> |
<center><b>Aktiva banners</b></center><br> |
613 |
<font size=3> |
<font size=3> |
614 |
<table width=100% border=0><tr> |
<table width=100% border=0><tr> |
615 |
<td bgcolor=0000BA><font color=white><center>"."ID"."</td> |
<td bgcolor=0000BA><font color=white><center>ID</td> |
616 |
<td bgcolor=0000BA><font color=white><center>"."Impressions"."</td> |
<td bgcolor=0000BA><font color=white><center>Impressions</td> |
617 |
<td bgcolor=0000BA><font color=white><center>"."Imp. kvar"."</td> |
<td bgcolor=0000BA><font color=white><center>Imp. kvar</td> |
618 |
<td bgcolor=0000BA><font color=white><center>"."Klick"."</td> |
<td bgcolor=0000BA><font color=white><center>Klick</td> |
619 |
<td bgcolor=0000BA><font color=white><center>"."% klick"."</td> |
<td bgcolor=0000BA><font color=white><center>% klick</td> |
620 |
<td bgcolor=0000BA><font color=white><center>"."Kundnamn"."</td> |
<td bgcolor=0000BA><font color=white><center>Kundnamn</td> |
621 |
<td bgcolor=0000BA><font color=white><center>"."Funktioner"."</td><tr>"; |
<td bgcolor=0000BA><font color=white><center>Funktioner</td><tr>"; |
622 |
$result = mysql_query("select bid, cid, imptotal, impmade, clicks, date from banner order by bid"); |
$result = mysql_query("select bid, cid, imptotal, impmade, clicks, date from banner order by bid"); |
623 |
|
|
624 |
while(list($bid, $cid, $imptotal, $impmade, $clicks, $date) = mysql_fetch_row($result)) { |
while(list($bid, $cid, $imptotal, $impmade, $clicks, $date) = mysql_fetch_row($result)) { |
631 |
} |
} |
632 |
|
|
633 |
if($imptotal==0) { |
if($imptotal==0) { |
634 |
$left = ""."Obegränsat".""; |
$left = "Obegränsat"; |
635 |
} else { |
} else { |
636 |
$left = $imptotal-$impmade; |
$left = $imptotal-$impmade; |
637 |
} |
} |
642 |
<td bgcolor=008888 align=center><font color=white>$clicks</td> |
<td bgcolor=008888 align=center><font color=white>$clicks</td> |
643 |
<td bgcolor=008888 align=center><font color=white>$percent%</td> |
<td bgcolor=008888 align=center><font color=white>$percent%</td> |
644 |
<td bgcolor=008888 align=center><font color=white>$name</td> |
<td bgcolor=008888 align=center><font color=white>$name</td> |
645 |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerEdit&bid=$bid>"."Redigera"."</a> | <a href=admin.php?op=BannerDelete&bid=$bid&ok=0>"."Radera"."</a></td><tr> |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerEdit&bid=$bid>Redigera</a> | <a href=admin.php?op=BannerDelete&bid=$bid&ok=0>Radera</a></td><tr> |
646 |
"; |
"; |
647 |
} |
} |
648 |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
650 |
echo "<a name=top>"; |
echo "<a name=top>"; |
651 |
OpenTable(); |
OpenTable(); |
652 |
echo "<font size=3> |
echo "<font size=3> |
653 |
<center><b>"."Färdiga banners"."</b></center><br> |
<center><b>Färdiga banners</b></center><br> |
654 |
<font size=3> |
<font size=3> |
655 |
<table width=100% border=0><tr> |
<table width=100% border=0><tr> |
656 |
<td bgcolor=0000BA><font color=white><center>"."ID"."</td> |
<td bgcolor=0000BA><font color=white><center>ID</td> |
657 |
<td bgcolor=0000BA><font color=white><center>"."Imp."."</td> |
<td bgcolor=0000BA><font color=white><center>Imp.</td> |
658 |
<td bgcolor=0000BA><font color=white><center>"."Klick"."</td> |
<td bgcolor=0000BA><font color=white><center>Klick</td> |
659 |
<td bgcolor=0000BA><font color=white><center>"."% klick"."</td> |
<td bgcolor=0000BA><font color=white><center>% klick</td> |
660 |
<td bgcolor=0000BA><font color=white><center>"."Datum för start"."</td> |
<td bgcolor=0000BA><font color=white><center>Datum för start</td> |
661 |
<td bgcolor=0000BA><font color=white><center>"."Datum för slut"."</td> |
<td bgcolor=0000BA><font color=white><center>Datum för slut</td> |
662 |
<td bgcolor=0000BA><font color=white><center>"."Kundnamn"."</td> |
<td bgcolor=0000BA><font color=white><center>Kundnamn</td> |
663 |
<td bgcolor=0000BA><font color=white><center>"."Funktioner"."</td><tr>"; |
<td bgcolor=0000BA><font color=white><center>Funktioner</td><tr>"; |
664 |
$result = mysql_query("select bid, cid, impressions, clicks, datestart, dateend from bannerfinish order by bid"); |
$result = mysql_query("select bid, cid, impressions, clicks, datestart, dateend from bannerfinish order by bid"); |
665 |
|
|
666 |
while(list($bid, $cid, $impressions, $clicks, $datestart, $dateend) = mysql_fetch_row($result)) { |
while(list($bid, $cid, $impressions, $clicks, $datestart, $dateend) = mysql_fetch_row($result)) { |
675 |
<td bgcolor=008888 align=center><font color=white>$datestart</td> |
<td bgcolor=008888 align=center><font color=white>$datestart</td> |
676 |
<td bgcolor=008888 align=center><font color=white>$dateend</td> |
<td bgcolor=008888 align=center><font color=white>$dateend</td> |
677 |
<td bgcolor=008888 align=center><font color=white>$name</td> |
<td bgcolor=008888 align=center><font color=white>$name</td> |
678 |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerFinishDelete&bid=$bid>"."Radera"."</a></td><tr> |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerFinishDelete&bid=$bid>Radera</a></td><tr> |
679 |
"; |
"; |
680 |
} |
} |
681 |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
684 |
OpenTable(); |
OpenTable(); |
685 |
echo " |
echo " |
686 |
<font size=3> |
<font size=3> |
687 |
<center><b>"."Bannerkunder"."</b></center><br> |
<center><b>Bannerkunder</b></center><br> |
688 |
<font size=3> |
<font size=3> |
689 |
<table width=100% border=0><tr> |
<table width=100% border=0><tr> |
690 |
<td bgcolor=0000BA><font color=white><center>"."ID"."</td> |
<td bgcolor=0000BA><font color=white><center>ID</td> |
691 |
<td bgcolor=0000BA><font color=white><center>"."Kundnamn"."</td> |
<td bgcolor=0000BA><font color=white><center>Kundnamn</td> |
692 |
<td bgcolor=0000BA><font color=white><center>"."Aktiva banners"."</td> |
<td bgcolor=0000BA><font color=white><center>Aktiva banners</td> |
693 |
<td bgcolor=0000BA><font color=white><center>"."Kontaktnamn"."</td> |
<td bgcolor=0000BA><font color=white><center>Kontaktnamn</td> |
694 |
<td bgcolor=0000BA><font color=white><center>"."Kontakt e-post"."</td> |
<td bgcolor=0000BA><font color=white><center>Kontakt e-post</td> |
695 |
<td bgcolor=0000BA><font color=white><center>"."Funktioner"."</td><tr>"; |
<td bgcolor=0000BA><font color=white><center>Funktioner</td><tr>"; |
696 |
$result = mysql_query("select cid, name, contact, email from bannerclient order by cid"); |
$result = mysql_query("select cid, name, contact, email from bannerclient order by cid"); |
697 |
|
|
698 |
while(list($cid, $name, $contact, $email) = mysql_fetch_row($result)) { |
while(list($cid, $name, $contact, $email) = mysql_fetch_row($result)) { |
704 |
<td bgcolor=008888 align=center><font color=white>$numrows</td> |
<td bgcolor=008888 align=center><font color=white>$numrows</td> |
705 |
<td bgcolor=008888 align=center><font color=white>$contact</td> |
<td bgcolor=008888 align=center><font color=white>$contact</td> |
706 |
<td bgcolor=008888 align=center><font color=white>$email</td> |
<td bgcolor=008888 align=center><font color=white>$email</td> |
707 |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerClientEdit&cid=$cid>"."Redigera"."</a> | <a href=admin.php?op=BannerClientDelete&cid=$cid>"."Radera"."</a></td><tr> |
<td bgcolor=008888 align=center><font color=white><a href=admin.php?op=BannerClientEdit&cid=$cid>Redigera</a> | <a href=admin.php?op=BannerClientDelete&cid=$cid>Radera</a></td><tr> |
708 |
"; |
"; |
709 |
} |
} |
710 |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
echo "</td></tr></table></td></tr></table></td></tr></table><br>"; |
715 |
OpenTable(); |
OpenTable(); |
716 |
echo" |
echo" |
717 |
<font size=3> |
<font size=3> |
718 |
<b>"."Lägg till en ny banner"."</b></center><br><br> |
<b>Lägg till en ny banner</b></center><br><br> |
719 |
<font size=3> |
<font size=3> |
720 |
<form action=admin.php?op=BannersAdd method=post> |
<form action=admin.php?op=BannersAdd method=post> |
721 |
"."Kundnamn: "." |
Kundnamn: |
722 |
<select name=cid>"; |
<select name=cid>"; |
723 |
$result = mysql_query("select cid, name from bannerclient"); |
$result = mysql_query("select cid, name from bannerclient"); |
724 |
while(list($cid, $name) = mysql_fetch_row($result)) { |
while(list($cid, $name) = mysql_fetch_row($result)) { |
726 |
} |
} |
727 |
echo " |
echo " |
728 |
</select><br> |
</select><br> |
729 |
"."Impressions köpta: "."<input class=textbox type=text name=imptotal size=12 maxlength=11> 0 = "."Obegränsat"."<br> |
Impressions köpta: <input class=textbox type=text name=imptotal size=12 maxlength=11> 0 = Obegränsat<br> |
730 |
"."Bild-URL: "."<input class=textbox type=text name=imageurl size=50 maxlength=100><br> |
Bild-URL: <input class=textbox type=text name=imageurl size=50 maxlength=100><br> |
731 |
"."Klick-URL: "."<input class=textbox type=text name=clickurl size=50 maxlength=200><br> |
Klick-URL: <input class=textbox type=text name=clickurl size=50 maxlength=200><br> |
732 |
<input type=\"hidden\" name=op value=BannersAdd> |
<input type=\"hidden\" name=op value=BannersAdd> |
733 |
<input type=submit value=\"Addera banner\" class=\"button\"> |
<input type=submit value=\"Addera banner\" class=\"button\"> |
734 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
738 |
OpenTable(); |
OpenTable(); |
739 |
echo" |
echo" |
740 |
<font size=3> |
<font size=3> |
741 |
<b>"."Lägg till en ny kund"."</b></center><br><br> |
<b>Lägg till en ny kund</b></center><br><br> |
742 |
<font size=3> |
<font size=3> |
743 |
<form action=admin.php?op=BannersAddClient method=post> |
<form action=admin.php?op=BannersAddClient method=post> |
744 |
"."Kundnamn: "."<input class=textbox type=text name=name size=30 maxlength=60><br> |
Kundnamn: <input class=textbox type=text name=name size=30 maxlength=60><br> |
745 |
"."Kontaktnamn: "."<input class=textbox type=text name=contact size=30 maxlength=60><br> |
Kontaktnamn: <input class=textbox type=text name=contact size=30 maxlength=60><br> |
746 |
"."Kontakt e-post: "."<input class=textbox type=text name=email size=30 maxlength=60><br> |
Kontakt e-post: <input class=textbox type=text name=email size=30 maxlength=60><br> |
747 |
"."Kundlogin: "."<input class=textbox type=text name=login size=12 maxlength=10><br> |
Kundlogin: <input class=textbox type=text name=login size=12 maxlength=10><br> |
748 |
"."Kundlösenord: "."<input class=textbox type=text name=passwd size=12 maxlength=10><br> |
Kundlösenord: <input class=textbox type=text name=passwd size=12 maxlength=10><br> |
749 |
"."Diverse info"."<br><textarea name=extrainfo cols=60 rows=10></textarea><br> |
Diverse info<br><textarea name=extrainfo cols=60 rows=10></textarea><br> |
750 |
<input type=\"hidden\" name=\"op\" value=\"BannerAddClient\"> |
<input type=\"hidden\" name=\"op\" value=\"BannerAddClient\"> |
751 |
<input type=\"submit\" value=\"Addera kund\" class=\"button\"> |
<input type=\"submit\" value=\"Addera kund\" class=\"button\"> |
752 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
786 |
<a href=\"$clickurl\"><img src=\"$imageurl\" border=\"1\"></a><br> |
<a href=\"$clickurl\"><img src=\"$imageurl\" border=\"1\"></a><br> |
787 |
<a href=\"$clickurl\">$clickurl</a><br><br> |
<a href=\"$clickurl\">$clickurl</a><br><br> |
788 |
<table width=100% border=0><tr> |
<table width=100% border=0><tr> |
789 |
<td bgcolor=0000BA><font color=white><center>"."ID"."</td> |
<td bgcolor=0000BA><font color=white><center>ID</td> |
790 |
<td bgcolor=0000BA><font color=white><center>"."Impressions"."</td> |
<td bgcolor=0000BA><font color=white><center>Impressions</td> |
791 |
<td bgcolor=0000BA><font color=white><center>"."Imp. kvar"."</td> |
<td bgcolor=0000BA><font color=white><center>Imp. kvar</td> |
792 |
<td bgcolor=0000BA><font color=white><center>"."Klick"."</td> |
<td bgcolor=0000BA><font color=white><center>Klick</td> |
793 |
<td bgcolor=0000BA><font color=white><center>"."% klick"."</td> |
<td bgcolor=0000BA><font color=white><center>% klick</td> |
794 |
<td bgcolor=0000BA><font color=white><center>"."Kundnamn"."</td><tr>"; |
<td bgcolor=0000BA><font color=white><center>Kundnamn</td><tr>"; |
795 |
$result2 = mysql_query("select cid, name from bannerclient where cid=$cid"); |
$result2 = mysql_query("select cid, name from bannerclient where cid=$cid"); |
796 |
list($cid, $name) = mysql_fetch_row($result2); |
list($cid, $name) = mysql_fetch_row($result2); |
797 |
$percent = substr(100 * $clicks / $impmade, 0, 5); |
$percent = substr(100 * $clicks / $impmade, 0, 5); |
810 |
"; |
"; |
811 |
} |
} |
812 |
echo "</td></tr></table><br> |
echo "</td></tr></table><br> |
813 |
"."Är du säker på att du vill radera den här bannern?"."<br><br> |
Är du säker på att du vill radera den här bannern?<br><br> |
814 |
[ <a href=\"admin.php?op=BannersAdmin#top\">"."Nej"."</a> | <a href=\"admin.php?op=BannerDelete&bid=$bid&ok=1\">"."Ja"."</a> ]</center><br><br></center> |
[ <a href=\"admin.php?op=BannersAdmin#top\">Nej</a> | <a href=\"admin.php?op=BannerDelete&bid=$bid&ok=1\">Ja</a> ]</center><br><br></center> |
815 |
</td></tr></table></center></td></tr></table>"; |
</td></tr></table></center></td></tr></table>"; |
816 |
include("footer.php"); |
include("footer.php"); |
817 |
} |
} |
825 |
OpenTable(); |
OpenTable(); |
826 |
echo " |
echo " |
827 |
<font size=3> |
<font size=3> |
828 |
<center><b>"."Redigera banner"."</b><br><br> |
<center><b>Redigera banner</b><br><br> |
829 |
<img src=$imageurl border=1><br><br> |
<img src=$imageurl border=1><br><br> |
830 |
<font size=3></center> |
<font size=3></center> |
831 |
<form action=admin.php?op=BannerChange method=post> |
<form action=admin.php?op=BannerChange method=post> |
832 |
"."Kundnamn: "." |
Kundnamn: |
833 |
<select name=cid> |
<select name=cid> |
834 |
"; |
"; |
835 |
|
|
845 |
} |
} |
846 |
echo "</select><br>"; |
echo "</select><br>"; |
847 |
if($imptotal==0) { |
if($imptotal==0) { |
848 |
$impressions = ""."Obegränsat".""; |
$impressions = "Obegränsat"; |
849 |
} else { |
} else { |
850 |
$impressions = $imptotal; |
$impressions = $imptotal; |
851 |
} |
} |
852 |
echo" |
echo" |
853 |
"."Öka antalet impressions: "."<input class=textbox type=text name=impadded size=12 maxlength=11> "."Köpta: "."<b>$impressions</b> "."Gjord: "."<b>$impmade</b><br> |
Öka antalet impressions: <input class=textbox type=text name=impadded size=12 maxlength=11> Köpta: <b>$impressions</b> Gjord: <b>$impmade</b><br> |
854 |
"."Bild-URL: "."<input class=textbox type=text name=imageurl size=50 maxlength=100 value=\"$imageurl\"><br> |
Bild-URL: <input class=textbox type=text name=imageurl size=50 maxlength=100 value=\"$imageurl\"><br> |
855 |
"."Klick-URL: "."<input class=textbox type=text name=clickurl size=50 maxlength=200 value=\"$clickurl\"><br> |
Klick-URL: <input class=textbox type=text name=clickurl size=50 maxlength=200 value=\"$clickurl\"><br> |
856 |
<input type=\"hidden\" name=bid value=$bid> |
<input type=\"hidden\" name=bid value=$bid> |
857 |
<input type=\"hidden\" name=imptotal value=$imptotal> |
<input type=\"hidden\" name=imptotal value=$imptotal> |
858 |
<input type=\"hidden\" name=op value=BannerChange> |
<input type=\"hidden\" name=op value=BannerChange> |
883 |
list($cid, $name) = mysql_fetch_row($result); |
list($cid, $name) = mysql_fetch_row($result); |
884 |
OpenTable(); |
OpenTable(); |
885 |
echo " |
echo " |
886 |
<center><b>"."Radera bannerkund"."</b><br><br> |
<center><b>Radera bannerkund</b><br><br> |
887 |
"."Du kommer att radera kund:"." <b>$name</b> "."och alla dess banners!"."<br><br>"; |
Du kommer att radera kund: <b>$name</b> och alla dess banners!<br><br>"; |
888 |
$result2 = mysql_query("select imageurl, clickurl from banner where cid=$cid"); |
$result2 = mysql_query("select imageurl, clickurl from banner where cid=$cid"); |
889 |
$numrows = mysql_num_rows($result2); |
$numrows = mysql_num_rows($result2); |
890 |
if($numrows==0) { |
if($numrows==0) { |
891 |
echo ""."Den här kunden har ingen banner som körs nu."."<br><br>"; |
echo "Den här kunden har ingen banner som körs nu.<br><br>"; |
892 |
} else { |
} else { |
893 |
echo "<font color=Red><b>"."VARNING!!!"."</b></font><br> |
echo "<font color=Red><b>VARNING!!!</b></font><br> |
894 |
"."Den här kunden har följande AKTIVA BANNERS som körs nu i"." $sitename:<br><br>"; |
Den här kunden har följande AKTIVA BANNERS som körs nu i $sitename:<br><br>"; |
895 |
} |
} |
896 |
while(list($imageurl, $clickurl) = mysql_fetch_row($result2)) { |
while(list($imageurl, $clickurl) = mysql_fetch_row($result2)) { |
897 |
echo" |
echo" |
900 |
"; |
"; |
901 |
} |
} |
902 |
} |
} |
903 |
echo ""."Är du säker på att du vill radera den här kunden och ALLA dess banners?"."<br><br> |
echo "Är du säker på att du vill radera den här kunden och ALLA dess banners?<br><br> |
904 |
[ <a href=\"admin.php?op=BannersAdmin#top\">"."Nej"."</a> | <a href=\"admin.php?op=BannerClientDelete&cid=$cid&ok=1\">"."Ja"."</a> ]</center><br><br></center> |
[ <a href=\"admin.php?op=BannersAdmin#top\">Nej</a> | <a href=\"admin.php?op=BannerClientDelete&cid=$cid&ok=1\">Ja</a> ]</center><br><br></center> |
905 |
</td></tr></table></center></td></tr></table>"; |
</td></tr></table></center></td></tr></table>"; |
906 |
include("footer.php"); |
include("footer.php"); |
907 |
} |
} |
915 |
OpenTable(); |
OpenTable(); |
916 |
echo" |
echo" |
917 |
<font size=3> |
<font size=3> |
918 |
<center><b>"."Redigera bannerkund"."</b><br><br></center> |
<center><b>Redigera bannerkund</b><br><br></center> |
919 |
<form action=admin.php?op=BannerClientChange method=post> |
<form action=admin.php?op=BannerClientChange method=post> |
920 |
"."Kundnamn: "."<input class=textbox type=text name=name value=\"$name\" size=30 maxlength=60><br> |
Kundnamn: <input class=textbox type=text name=name value=\"$name\" size=30 maxlength=60><br> |
921 |
"."Kontaktnamn: "."<input class=textbox type=text name=contact value=\"$contact\" size=30 maxlength=60><br> |
Kontaktnamn: <input class=textbox type=text name=contact value=\"$contact\" size=30 maxlength=60><br> |
922 |
"."Kontakt e-post: "."<input class=textbox type=text name=email size=30 maxlength=60 value=\"$email\"><br> |
Kontakt e-post: <input class=textbox type=text name=email size=30 maxlength=60 value=\"$email\"><br> |
923 |
"."Kundlogin: "."<input class=textbox type=text name=login size=12 maxlength=10 value=\"$login\"><br> |
Kundlogin: <input class=textbox type=text name=login size=12 maxlength=10 value=\"$login\"><br> |
924 |
"."Kundlösenord: "."<input class=textbox type=text name=passwd size=12 maxlength=10 value=\"$passwd\"><br> |
Kundlösenord: <input class=textbox type=text name=passwd size=12 maxlength=10 value=\"$passwd\"><br> |
925 |
"."Diverse info"."<br><textarea name=extrainfo cols=60 rows=10>$extrainfo</textarea><br> |
Diverse info<br><textarea name=extrainfo cols=60 rows=10>$extrainfo</textarea><br> |
926 |
<input type=\"hidden\" name=cid value=$cid> |
<input type=\"hidden\" name=cid value=$cid> |
927 |
<input type=\"hidden\" name=op value=BannerClientChange> |
<input type=\"hidden\" name=op value=BannerClientChange> |
928 |
<input type=\"submit\" value=\"Ändra kund\" class=\"button\"> |
<input type=\"submit\" value=\"Ändra kund\" class=\"button\"> |
949 |
$dummy = 0; |
$dummy = 0; |
950 |
$result = mysql_query("SELECT qid, subject, timestamp FROM queue order by timestamp"); |
$result = mysql_query("SELECT qid, subject, timestamp FROM queue order by timestamp"); |
951 |
if(mysql_num_rows($result) == 0) { |
if(mysql_num_rows($result) == 0) { |
952 |
echo "<table width=\"100%\"><tr><td bgcolor=\"#cccccc\" align=\"center\"><b>"."Inga nya bidrag"."</b></td></tr></table>"; |
echo "<table width=\"100%\"><tr><td bgcolor=\"#cccccc\" align=\"center\"><b>Inga nya bidrag</b></td></tr></table>"; |
953 |
} else { |
} else { |
954 |
echo "<center><font size=2><b>"."Nya artikelbidrag"."</b><form action=\"admin.php\" method=\"post\"><table width=\"100%\" border=1 bgcolor=CCCCCC>"; |
echo "<center><font size=2><b>Nya artikelbidrag</b><form action=\"admin.php\" method=\"post\"><table width=\"100%\" border=1 bgcolor=CCCCCC>"; |
955 |
while (list($qid, $subject, $timestamp) = mysql_fetch_row($result)) { |
while (list($qid, $subject, $timestamp) = mysql_fetch_row($result)) { |
956 |
$hour = "AM"; |
$hour = "AM"; |
957 |
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $timestamp, $datetime); |
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $timestamp, $datetime); |
958 |
if ($datetime[4] > 12) { $datetime[4] = $datetime[4]-12; $hour = "PM"; } |
if ($datetime[4] > 12) { $datetime[4] = $datetime[4]-12; $hour = "PM"; } |
959 |
$datetime = date("%e %b %Y %H.%M", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); |
$datetime = date("%e %b %Y %H.%M", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1])); |
960 |
echo "<tr> |
echo "<tr> |
961 |
<td align=middle><font SIZE=2>(<a href=admin.php?op=DeleteStory&qid=$qid>"."Radera"."</a>)</td> |
<td align=middle><font SIZE=2>(<a href=admin.php?op=DeleteStory&qid=$qid>Radera</a>)</td> |
962 |
<td><font SIZE=3>"; |
<td><font SIZE=3>"; |
963 |
if ($subject == "") { |
if ($subject == "") { |
964 |
echo "<a href=\"admin.php?op=DisplayStory&qid=$qid\">"."Inget ämne"."</a></font>"; |
echo "<a href=\"admin.php?op=DisplayStory&qid=$qid\">Inget ämne</a></font>"; |
965 |
} else { |
} else { |
966 |
echo "<a href=\"admin.php?op=DisplayStory&qid=$qid\">".nowordlinkshtml($subject)."</a></font>"; |
echo "<a href=\"admin.php?op=DisplayStory&qid=$qid\">".nowordlinkshtml($subject)."</a></font>"; |
967 |
} |
} |
970 |
$dummy++; |
$dummy++; |
971 |
} |
} |
972 |
if ($dummy < 1) { |
if ($dummy < 1) { |
973 |
echo "<tr><td bgcolor=\"#cccccc\" align=\"center\"><b>"."Inga nya bidrag"."</b></td></tr></table></form>"; |
echo "<tr><td bgcolor=\"#cccccc\" align=\"center\"><b>Inga nya bidrag</b></td></tr></table></form>"; |
974 |
} else { |
} else { |
975 |
?> |
?> |
976 |
</table></form> |
</table></form> |
985 |
GraphicAdmin(); |
GraphicAdmin(); |
986 |
?> |
?> |
987 |
<hr noshade> |
<hr noshade> |
988 |
<?= "<center><b>"."De senaste"." $admart "."Artiklar"."</b></center></font>"; ?> |
<?= "<center><b>De senaste $admart Artiklar</b></center></font>"; ?> |
989 |
<br> |
<br> |
990 |
<?php |
<?php |
991 |
$result=mysql_query("select sid, title, time, topic, informant from stories order by time desc limit 0,$admart"); |
$result=mysql_query("select sid, title, time, topic, informant from stories order by time desc limit 0,$admart"); |
999 |
<tr><td align=right><b>$sid</b> |
<tr><td align=right><b>$sid</b> |
1000 |
</td><td align=left width=100%><a href=article.php?sid=$sid>".nowordlinkshtml($title)."</a> |
</td><td align=left width=100%><a href=article.php?sid=$sid>".nowordlinkshtml($title)."</a> |
1001 |
</td><td align=right>$topicname |
</td><td align=right>$topicname |
1002 |
</td><td align=right><b>(<a href=admin.php?op=EditStory&sid=$sid>"."Redigera"."</a>)</b> |
</td><td align=right><b>(<a href=admin.php?op=EditStory&sid=$sid>Redigera</a>)</b> |
1003 |
</td><td align=right><b>(<a href=admin.php?op=RemoveStory&sid=$sid>"."Radera"."</a>)</b>"; |
</td><td align=right><b>(<a href=admin.php?op=RemoveStory&sid=$sid>Radera</a>)</b>"; |
1004 |
echo "</td></tr>"; |
echo "</td></tr>"; |
1005 |
} |
} |
1006 |
echo "</td></table>"; |
echo "</td></table>"; |
1007 |
?> |
?> |
1008 |
<form action="admin.php" method="post"> |
<form action="admin.php" method="post"> |
1009 |
<?= "Artikel-ID:"; ?> <input class=textbox type="text" NAME="sid" SIZE=10> |
Artikel-ID: <input class=textbox type="text" NAME="sid" SIZE=10> |
1010 |
<select name="op"> |
<select name="op"> |
1011 |
<option value="EditStory" SELECTED><?= " Redigera artikel "; ?></option> |
<option value="EditStory" SELECTED> Redigera artikel </option> |
1012 |
<option value="RemoveStory"><?= " Ta bort artikel "; ?></option></select> |
<option value="RemoveStory"> Ta bort artikel </option></select> |
1013 |
<input type="submit" value="OK!" class="button"></form></center> |
<input type="submit" value="OK!" class="button"></form></center> |
1014 |
<hr noshade> |
<hr noshade> |
1015 |
<center> |
<center> |
1017 |
$result = mysql_query("SELECT pollID, pollTitle, timeStamp FROM poll_desc ORDER BY pollID DESC limit 1"); |
$result = mysql_query("SELECT pollID, pollTitle, timeStamp FROM poll_desc ORDER BY pollID DESC limit 1"); |
1018 |
$object = mysql_fetch_object($result); |
$object = mysql_fetch_object($result); |
1019 |
$pollTitle = $object->pollTitle; |
$pollTitle = $object->pollTitle; |
1020 |
echo "Nuvarande undersökning: "." $pollTitle |
echo "Nuvarande undersökning: $pollTitle |
1021 |
<br><br></td></tr></table></td></tr></table>"; |
<br><br></td></tr></table></td></tr></table>"; |
1022 |
mysql_free_result($result); |
mysql_free_result($result); |
1023 |
include ('footer.php'); |
include ('footer.php'); |
1040 |
if (mysql_num_rows($result) > 0) { |
if (mysql_num_rows($result) > 0) { |
1041 |
OpenTable(); |
OpenTable(); |
1042 |
echo " |
echo " |
1043 |
<b><center>"."Nuvarande aktiva avdelningar"."</b><br>"."Klicka för att redigera"."</center><br> |
<b><center>Nuvarande aktiva avdelningar</b><br>Klicka för att redigera</center><br> |
1044 |
<center><table border=0 width=100% align=center cellpadding=1><tr><td align=center> |
<center><table border=0 width=100% align=center cellpadding=1><tr><td align=center> |
1045 |
"; |
"; |
1046 |
while(list($secid, $secname) = mysql_fetch_array($result)) { |
while(list($secid, $secname) = mysql_fetch_array($result)) { |
1053 |
</td></tr></table></td></tr></table> |
</td></tr></table></td></tr></table> |
1054 |
<br> |
<br> |
1055 |
<?php OpenTable(); ?> |
<?php OpenTable(); ?> |
1056 |
<font size=4><b><?= "Lägg till artikel i avdelningar"; ?></b><font size=2> |
<font size=4><b>Lägg till artikel i avdelningar</b><font size=2> |
1057 |
<br><br> |
<br><br> |
1058 |
<form action="admin.php" method="post"><br> |
<form action="admin.php" method="post"><br> |
1059 |
<b><?= "Titel:"; ?></b><br> |
<b>Titel:</b><br> |
1060 |
<input class=textbox type="text" name="title" size=60 value=""><br><br> |
<input class=textbox type="text" name="title" size=60 value=""><br><br> |
1061 |
<?php |
<?php |
1062 |
$result = mysql_query("select secid, secname from sections order by secid"); |
$result = mysql_query("select secid, secname from sections order by secid"); |
1064 |
echo "<input type=radio name=secid value=$secid>$secname<br>"; |
echo "<input type=radio name=secid value=$secid>$secname<br>"; |
1065 |
} ?> |
} ?> |
1066 |
<br> |
<br> |
1067 |
<b><?= "Innehåll:"; ?></b><br> |
<b>Innehåll:</b><br> |
1068 |
<textarea class=textbox name="content" cols=60 rows=10></textarea><br><br> |
<textarea class=textbox name="content" cols=60 rows=10></textarea><br><br> |
1069 |
<input type="hidden" name="op" value="secarticleadd"> |
<input type="hidden" name="op" value="secarticleadd"> |
1070 |
<input type="submit" value="Lägg till artikel" class="button"> |
<input type="submit" value="Lägg till artikel" class="button"> |
1080 |
while(list($artid, $secid, $title, $content) = mysql_fetch_array($result)) { |
while(list($artid, $secid, $title, $content) = mysql_fetch_array($result)) { |
1081 |
$result2 = mysql_query("select secid, secname from sections where secid='$secid'"); |
$result2 = mysql_query("select secid, secname from sections where secid='$secid'"); |
1082 |
list($secid, $secname) = mysql_fetch_row($result2); |
list($secid, $secname) = mysql_fetch_row($result2); |
1083 |
echo "<li>$title ($secname) [ <a href=admin.php?op=secartedit&artid=$artid>"."Redigera"."</a> ]"; |
echo "<li>$title ($secname) [ <a href=admin.php?op=secartedit&artid=$artid>Redigera</a> ]"; |
1084 |
} ?> |
} ?> |
1085 |
</ul> |
</ul> |
1086 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1087 |
<?= "Redigera artikel-ID:"; ?> <input class=textbox type="text" name="artid" size="10"> |
Redigera artikel-ID: <input class=textbox type="text" name="artid" size="10"> |
1088 |
<input type="hidden" name="op" value="secartedit"> |
<input type="hidden" name="op" value="secartedit"> |
1089 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1090 |
<?php mysql_free_result($result); ?> |
<?php mysql_free_result($result); ?> |
1092 |
</ul> |
</ul> |
1093 |
<?php } |
<?php } |
1094 |
OpenTable(); ?> |
OpenTable(); ?> |
1095 |
<font size=4><b><?= "Lägg till en ny avdelning"; ?></b><font size=2> |
<font size=4><b>Lägg till en ny avdelning</b><font size=2> |
1096 |
<br><br> |
<br><br> |
1097 |
<form action="admin.php" method="post"><br> |
<form action="admin.php" method="post"><br> |
1098 |
<b><?= "Avdelningsnamn:"; ?></b><br> |
<b>Avdelningsnamn:</b><br> |
1099 |
<input class=textbox type="text" name="secname" size=40 maxlength=40><br><br> |
<input class=textbox type="text" name="secname" size=40 maxlength=40><br><br> |
1100 |
<b><?= "Ämnesbild:"; ?> </b> (exempel: opinion.png)<br> |
<b>Ämnesbild: </b> (exempel: opinion.png)<br> |
1101 |
<input class=textbox type="text" name="image" size=40 maxlength=50><br><br> |
<input class=textbox type="text" name="image" size=40 maxlength=50><br><br> |
1102 |
<input type="hidden" name="op" value="sectionmake"> |
<input type="hidden" name="op" value="sectionmake"> |
1103 |
<input type="submit" value="Addera avdelning" class="button"> |
<input type="submit" value="Addera avdelning" class="button"> |
1123 |
list($artid, $secid, $title, $content) = mysql_fetch_array($result); |
list($artid, $secid, $title, $content) = mysql_fetch_array($result); |
1124 |
OpenTable(); |
OpenTable(); |
1125 |
?> |
?> |
1126 |
<font size=4><b><?= "Redigera artikel"; ?></b><font size=2> |
<font size=4><b>Redigera artikel</b><font size=2> |
1127 |
<br><br> |
<br><br> |
1128 |
<form action="admin.php" method="post"><br> |
<form action="admin.php" method="post"><br> |
1129 |
<b><?= "Titel:"; ?></b><br> |
<b>Titel:</b><br> |
1130 |
<input class=textbox type="text" name="title" size=60 value="<?= $title; ?>"><br><br> |
<input class=textbox type="text" name="title" size=60 value="<?= $title; ?>"><br><br> |
1131 |
<?php |
<?php |
1132 |
$result2 = mysql_query("select secid, secname from sections order by secname"); |
$result2 = mysql_query("select secid, secname from sections order by secname"); |
1173 |
OpenTable(); |
OpenTable(); |
1174 |
?> |
?> |
1175 |
<?= "<img src=images/sections/$image border=0><br><br>"; ?> |
<?= "<img src=images/sections/$image border=0><br><br>"; ?> |
1176 |
<font size="4"><b><?= "Redigera avdelning:"; ?> <?= $secname; ?></b><font size="2"> |
<font size="4"><b>Redigera avdelning: <?= $secname; ?></b><font size="2"> |
1177 |
<br> |
<br> |
1178 |
(This Section has <?= $number; ?> Articles attached) |
(Denna avdelning innehåller <?= $number; ?> artiklar) |
1179 |
<br><br> |
<br><br> |
1180 |
<form action="admin.php" method="POST"><br> |
<form action="admin.php" method="POST"><br> |
1181 |
<b><?= "Avdelningsnamn:"; ?></b> <?= "(Max 40 tecken.)"; ?><br> |
<b>Avdelningsnamn:</b> (Max 40 tecken.)<br> |
1182 |
<input class="textbox" type="text" name="secname" size="40" maxlength="40" value="<?= $secname; ?>"><br><br> |
<input class="textbox" type="text" name="secname" size="40" maxlength="40" value="<?= $secname; ?>"><br><br> |
1183 |
<b><?= "Ämnesbild:"; ?></b> (exempel: opinion.png)<br> |
<b>Ämnesbild:</b> (exempel: opinion.png)<br> |
1184 |
<input class="textbox" type="text" name="image" size="40" maxlength="50" value="<?= $image; ?>"><br><br> |
<input class="textbox" type="text" name="image" size="40" maxlength="50" value="<?= $image; ?>"><br><br> |
1185 |
<input type="hidden" name="secid" value="<?= $secid; ?>"> |
<input type="hidden" name="secid" value="<?= $secid; ?>"> |
1186 |
<input type="hidden" name="op" value="sectionchange"> |
<input type="hidden" name="op" value="sectionchange"> |
1228 |
list($secname) = mysql_fetch_row($result); |
list($secname) = mysql_fetch_row($result); |
1229 |
OpenTable(); |
OpenTable(); |
1230 |
echo " |
echo " |
1231 |
<center><b>"."Ta bort avdelning: "."$secname</b><br><br> |
<center><b>Ta bort avdelning: $secname</b><br><br> |
1232 |
"."Är du säker på att du vill ta bort den här avdelningen"." $secname?<br> |
Är du säker på att du vill ta bort den här avdelningen $secname?<br> |
1233 |
"."Det här kommer att radera ALLA artiklar i avdelningen!"."<br><br> |
Det här kommer att radera ALLA artiklar i avdelningen!<br><br> |
1234 |
[ <a href=\"admin.php?op=sections\">"."Nej"."</a> | <a href=\"admin.php?op=sectiondelete&secid=$secid&ok=1\">"."Ja"."</a> ]</center><br><br></center> |
[ <a href=\"admin.php?op=sections\">Nej</a> | <a href=\"admin.php?op=sectiondelete&secid=$secid&ok=1\">Ja</a> ]</center><br><br></center> |
1235 |
</td></tr></table></center></td></tr></table>"; |
</td></tr></table></center></td></tr></table>"; |
1236 |
include("footer.php"); |
include("footer.php"); |
1237 |
} |
} |
1250 |
list($title) = mysql_fetch_row($result); |
list($title) = mysql_fetch_row($result); |
1251 |
OpenTable(); |
OpenTable(); |
1252 |
echo " |
echo " |
1253 |
<center><b>"."Ta bort artikel: "."$title</b><br><br> |
<center><b>Ta bort artikel: $title</b><br><br> |
1254 |
"."Är du säker på att du vill ta bort den här artikeln?"."<br><br> |
Är du säker på att du vill ta bort den här artikeln?<br><br> |
1255 |
[ <a href=\"admin.php?op=sections\">"."Nej"."</a> | <a href=\"admin.php?op=secartdelete&artid=$artid&ok=1\">"."Ja"."</a> ]</center><br><br></center> |
[ <a href=\"admin.php?op=sections\">Nej</a> | <a href=\"admin.php?op=secartdelete&artid=$artid&ok=1\">Ja</a> ]</center><br><br></center> |
1256 |
</td></tr></table></center></td></tr></table>"; |
</td></tr></table></center></td></tr></table>"; |
1257 |
include("footer.php"); |
include("footer.php"); |
1258 |
} |
} |
1277 |
if (mysql_num_rows($result) > 0) { |
if (mysql_num_rows($result) > 0) { |
1278 |
OpenTable(); |
OpenTable(); |
1279 |
echo " |
echo " |
1280 |
<b><center>"."Aktiva ämnen"."</b><br>"."Klicka för att redigera"."</center><br> |
<b><center>Aktiva ämnen</b><br>Klicka för att redigera</center><br> |
1281 |
<center><table border=0 width=100% align=center cellpadding=2><tr>"; |
<center><table border=0 width=100% align=center cellpadding=2><tr>"; |
1282 |
while(list($topicid, $topicname, $topicimage, $topictext) = mysql_fetch_array($result)) { |
while(list($topicid, $topicname, $topicimage, $topictext) = mysql_fetch_array($result)) { |
1283 |
?> |
?> |
1301 |
</td></tr></table></td></tr></table> |
</td></tr></table></td></tr></table> |
1302 |
<br><a name=Add> |
<br><a name=Add> |
1303 |
<?php OpenTable(); ?> |
<?php OpenTable(); ?> |
1304 |
<font size=4><b><?= "Lägg till ett nytt ämne"; ?></b><font size=2> |
<font size=4><b>Lägg till ett nytt ämne</b><font size=2> |
1305 |
<br><br> |
<br><br> |
1306 |
<form action="admin.php" method="post"><br> |
<form action="admin.php" method="post"><br> |
1307 |
<b><?= "Ämnesnamn:"; ?></b> <?= "(endast ett namn utan mellanslag - max 20 tecken)"; ?><br> |
<b>Ämnesnamn:</b> (endast ett namn utan mellanslag - max 20 tecken)<br> |
1308 |
<?= "till exempel: spelochhobbies"; ?><br> |
till exempel: spelochhobbies<br> |
1309 |
<input class=textbox type="text" name="topicname" size=20 maxlength=20 value="<?= $topicname; ?>"><br><br> |
<input class=textbox type="text" name="topicname" size=20 maxlength=20 value="<?= $topicname; ?>"><br><br> |
1310 |
<b><?= "Ämnestext:"; ?></b> <?= "(komplett avdelningsnamn och beskrivning - max 40 tecken)"; ?><br> |
<b>Ämnestext:</b> (komplett avdelningsnamn och beskrivning - max 40 tecken)<br> |
1311 |
<?= "till exempel: Spel och hobbies"; ?><br> |
till exempel: Spel och hobbies<br> |
1312 |
<input class=textbox type="text" name="topictext" size=40 maxlength=40 value="<?= "$topictext"; ?>"><br><br> |
<input class=textbox type="text" name="topictext" size=40 maxlength=40 value="<?= "$topictext"; ?>"><br><br> |
1313 |
<b><?= "Ämnesbild:"; ?></b> <?= "(bildnamn + extension finns i"; ?> <?= $tipath; ?>)<br> |
<b>Ämnesbild:</b> (bildnamn + extension finns i <?= $tipath; ?>)<br> |
1314 |
(till exempel: games.png)<br> |
(till exempel: games.png)<br> |
1315 |
<input class=textbox type="text" name="topicimage" size=20 maxlength=20 value="<?= "$topicimage"; ?>"><br><br> |
<input class=textbox type="text" name="topicimage" size=20 maxlength=20 value="<?= "$topicimage"; ?>"><br><br> |
1316 |
<input type="hidden" name=op value=topicmake> |
<input type="hidden" name=op value=topicmake> |
1331 |
OpenTable(); |
OpenTable(); |
1332 |
?> |
?> |
1333 |
<img src=<?= "$tipath$topicimage"; ?> border=0 align=right> |
<img src=<?= "$tipath$topicimage"; ?> border=0 align=right> |
1334 |
<font size=4><b><?= "Redigera ämne:"; ?> <?= "$topictext"; ?></b><font size=2> |
<font size=4><b>Redigera ämne: <?= "$topictext"; ?></b><font size=2> |
1335 |
<br><br> |
<br><br> |
1336 |
<form action="admin.php" method="post"><br> |
<form action="admin.php" method="post"><br> |
1337 |
<b><?= "Ämnesnamn:"; ?></b> <?= "(endast ett namn utan mellanslag - max 20 tecken)"; ?><br> |
<b>Ämnesnamn:</b> (endast ett namn utan mellanslag - max 20 tecken)<br> |
1338 |
<?= "till exempel: spelochhobbies"; ?><br> |
till exempel: spelochhobbies<br> |
1339 |
<input class=textbox type="text" name="topicname" size=20 maxlength=20 value="<?= "$topicname"; ?>"><br><br> |
<input class=textbox type="text" name="topicname" size=20 maxlength=20 value="<?= "$topicname"; ?>"><br><br> |
1340 |
<b><?= "Ämnestext:"; ?></b> <?= "(komplett avdelningsnamn och beskrivning - max 40 tecken)"; ?><br> |
<b>Ämnestext:</b> (komplett avdelningsnamn och beskrivning - max 40 tecken)<br> |
1341 |
<?= "till exempel: Spel och hobbies"; ?><br> |
till exempel: Spel och hobbies<br> |
1342 |
<input class=textbox type="text" name="topictext" size=40 maxlength=40 value="<?= $topictext; ?>"><br><br> |
<input class=textbox type="text" name="topictext" size=40 maxlength=40 value="<?= $topictext; ?>"><br><br> |
1343 |
<b><?= "Ämnesbild:"; ?></b> <?= "(bildnamn + extension finns i"; ?> <?= "$tipath"; ?>)<br> |
<b>Ämnesbild:</b> (bildnamn + extension finns i <?= "$tipath"; ?>)<br> |
1344 |
(till exempel: games.png)<br> |
(till exempel: games.png)<br> |
1345 |
<input class=textbox type="text" name="topicimage" size=20 maxlength=20 value="<?= $topicimage; ?>"><br><br> |
<input class=textbox type="text" name="topicimage" size=20 maxlength=20 value="<?= $topicimage; ?>"><br><br> |
1346 |
|
|
1347 |
<b><?= "Lägg till relaterade artiklar:"; ?></b><br> |
<b>Lägg till relaterade artiklar:</b><br> |
1348 |
<?= "Sajtnamn: "; ?><input class=textbox type="text" name="name" size=30 maxlength=30><br> |
Sajtnamn: <input class=textbox type="text" name="name" size=30 maxlength=30><br> |
1349 |
<?= "URL: "; ?><input class=textbox type="text" name="url" value="http://" size=50 maxlength=200><br><br> |
URL: <input class=textbox type="text" name="url" value="http://" size=50 maxlength=200><br><br> |
1350 |
|
|
1351 |
<b><?= "Aktiva relaterade länkar:"; ?></b><br> |
<b>Aktiva relaterade länkar:</b><br> |
1352 |
<?php |
<?php |
1353 |
$res=mysql_query("select rid, name, url from related where tid=$topicid"); |
$res=mysql_query("select rid, name, url from related where tid=$topicid"); |
1354 |
echo "<table width=100% border=0><tr><td>"; |
echo "<table width=100% border=0><tr><td>"; |
1355 |
while(list($rid, $name, $url) = mysql_fetch_row($res)) { |
while(list($rid, $name, $url) = mysql_fetch_row($res)) { |
1356 |
echo "<font size=1><li> <a href=$url>$name</a></td><td>"; |
echo "<font size=1><li> <a href=$url>$name</a></td><td>"; |
1357 |
echo "<font size=1><a href=$url>$url</a></td><td><font size=1>[ <a href=admin.php?op=relatededit&tid=$topicid&rid=$rid>"."Redigera"."</a> | <a href=admin.php?op=relateddelete&tid=$topicid&rid=$rid>"."Radera"."</a> ]</td></tr><tr><td>"; |
echo "<font size=1><a href=$url>$url</a></td><td><font size=1>[ <a href=admin.php?op=relatededit&tid=$topicid&rid=$rid>Redigera</a> | <a href=admin.php?op=relateddelete&tid=$topicid&rid=$rid>Radera</a> ]</td></tr><tr><td>"; |
1358 |
} |
} |
1359 |
echo "</td></tr></table>"; |
echo "</td></tr></table>"; |
1360 |
?> |
?> |
1385 |
echo " |
echo " |
1386 |
<center><font size=4> |
<center><font size=4> |
1387 |
<img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right> |
<img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right> |
1388 |
<b>"."Redigera relaterade länkar"."</b><br> |
<b>Redigera relaterade länkar</b><br> |
1389 |
<font size=2><b>"."Ämne:"."</b> $topictext</center> |
<font size=2><b>Ämne:</b> $topictext</center> |
1390 |
<form action=admin.php method=post> |
<form action=admin.php method=post> |
1391 |
<font size=2> |
<font size=2> |
1392 |
"."Sajtnamn: "."<input type=text class=textbox name=name value=\"$name\" size=30 maxlength=30><br><br> |
Sajtnamn: <input type=text class=textbox name=name value=\"$name\" size=30 maxlength=30><br><br> |
1393 |
"."URL: "."<input type=text class=textbox name=url value=\"$url\" size=60 maxlength=200><br><br> |
URL: <input type=text class=textbox name=url value=\"$url\" size=60 maxlength=200><br><br> |
1394 |
<input type=\"hidden\" name=\"op\" value=\"relatedsave\"> |
<input type=\"hidden\" name=\"op\" value=\"relatedsave\"> |
1395 |
<input type=\"hidden\" name=\"tid\" value=\"$tid\"> |
<input type=\"hidden\" name=\"tid\" value=\"$tid\"> |
1396 |
<input type=\"hidden\" name=\"rid\" value=\"$rid\"> |
<input type=\"hidden\" name=\"rid\" value=\"$rid\"> |
1456 |
OpenTable(); |
OpenTable(); |
1457 |
echo " |
echo " |
1458 |
<center><img src=$tipath$topicimage border=0><br> |
<center><img src=$tipath$topicimage border=0><br> |
1459 |
<b>"."Ta bort avdelning"." $topictext</b><br><br> |
<b>Ta bort avdelning $topictext</b><br><br> |
1460 |
"."Är du säker på att du vill ta bort avdelningen"." $topictext?<br> |
Är du säker på att du vill ta bort avdelningen $topictext?<br> |
1461 |
"."Det här kommer att radera ALLA artiklar och kommentarer!"."<br><br> |
Det här kommer att radera ALLA artiklar och kommentarer!<br><br> |
1462 |
[ <a href=\"admin.php?op=topicsmanager\">"."Nej"."</a> | <a href=\"admin.php?op=topicdelete&topicid=$topicid&ok=1\">"."Ja"."</a> ]</center><br><br> |
[ <a href=\"admin.php?op=topicsmanager\">Nej</a> | <a href=\"admin.php?op=topicdelete&topicid=$topicid&ok=1\">Ja</a> ]</center><br><br> |
1463 |
</td></tr></table></td></tr></table>"; |
</td></tr></table></td></tr></table>"; |
1464 |
include("footer.php"); |
include("footer.php"); |
1465 |
} |
} |
1480 |
while(list($title, $content) = mysql_fetch_array($result)) { |
while(list($title, $content) = mysql_fetch_array($result)) { |
1481 |
OpenTable(); |
OpenTable(); |
1482 |
?> |
?> |
1483 |
<font size="4"><center><b><?= "Redigera huvudblock"; ?></center></b></font><br><br> |
<font size="4"><center><b>Redigera huvudblock</center></b></font><br><br> |
1484 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1485 |
<?= "Titel:"; ?> |
Titel: |
1486 |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
1487 |
<?= "Innehåll:"; ?> |
Innehåll: |
1488 |
<br><textarea class="textbox" cols="50" rows="10" name="content"><?= $content; ?></textarea><br> |
<br><textarea class="textbox" cols="50" rows="10" name="content"><?= $content; ?></textarea><br> |
1489 |
<input type="hidden" name="op" value="changemblock"> |
<input type="hidden" name="op" value="changemblock"> |
1490 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1518 |
GraphicAdmin(); |
GraphicAdmin(); |
1519 |
OpenTable(); |
OpenTable(); |
1520 |
echo " |
echo " |
1521 |
<font size=4><b><center>"."Redigera högerblock"."</b></center></font><br><br> |
<font size=4><b><center>Redigera högerblock</b></center></font><br><br> |
1522 |
"; |
"; |
1523 |
$result = mysql_query("select id, title, content from rblocks"); |
$result = mysql_query("select id, title, content from rblocks"); |
1524 |
if (mysql_num_rows($result) > 0) { |
if (mysql_num_rows($result) > 0) { |
1525 |
while(list($id, $title, $content) = mysql_fetch_array($result)) { |
while(list($id, $title, $content) = mysql_fetch_array($result)) { |
1526 |
?> |
?> |
1527 |
<form action="admin.php" method="post"> |
<form action="admin.php" method="post"> |
1528 |
<?= "Titel:"; ?> |
Titel: |
1529 |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
1530 |
<?= "Innehåll:"; ?> |
Innehåll: |
1531 |
<br><textarea class="textbox" cols="50" rows="6" name="content"><?= $content; ?></textarea><br> |
<br><textarea class="textbox" cols="50" rows="6" name="content"><?= $content; ?></textarea><br> |
1532 |
<input type="hidden" name="id" value="<?= $id; ?>"> |
<input type="hidden" name="id" value="<?= $id; ?>"> |
1533 |
<select name="op"> |
<select name="op"> |
1534 |
<option value="changerblock" selected><?= "Ändra block"; ?></option> |
<option value="changerblock" selected>Ändra block</option> |
1535 |
<option value="deleterblock"><?= "Ta bort block"; ?></option> |
<option value="deleterblock">Ta bort block</option> |
1536 |
</select> |
</select> |
1537 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1538 |
</form> |
</form> |
1541 |
} |
} |
1542 |
} |
} |
1543 |
echo "<hr noshade> |
echo "<hr noshade> |
1544 |
<font size=4><b><center>"."Skapa nytt högerblock"."</b></center></font><br><br>"; |
<font size=4><b><center>Skapa nytt högerblock</b></center></font><br><br>"; |
1545 |
?> |
?> |
1546 |
<form action="admin.php" method="post"> |
<form action="admin.php" method="post"> |
1547 |
<?= "Titel:"; ?> |
Titel: |
1548 |
<input class=textbox type="text" name="title" size=30 maxlength=60><br> |
<input class=textbox type="text" name="title" size=30 maxlength=60><br> |
1549 |
<?= "Innehåll:"; ?><br> |
Innehåll:<br> |
1550 |
<textarea class="textbox" wrap="virtual" cols="50" rows="6" name="content"></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="6" name="content"></textarea><br> |
1551 |
<input type="hidden" name="op" value="makerblock"> |
<input type="hidden" name="op" value="makerblock"> |
1552 |
<input type="submit" value="Skapa block" class="button"> |
<input type="submit" value="Skapa block" class="button"> |
1590 |
GraphicAdmin(); |
GraphicAdmin(); |
1591 |
OpenTable(); |
OpenTable(); |
1592 |
echo " |
echo " |
1593 |
<font size=4><b><center>"."Redigera vänsterblock"."</b></center></font><br><br> |
<font size=4><b><center>Redigera vänsterblock</b></center></font><br><br> |
1594 |
"; |
"; |
1595 |
$result = mysql_query("select id, title, content from lblocks"); |
$result = mysql_query("select id, title, content from lblocks"); |
1596 |
if (mysql_num_rows($result) > 0) { |
if (mysql_num_rows($result) > 0) { |
1597 |
while(list($id, $title, $content) = mysql_fetch_array($result)) { |
while(list($id, $title, $content) = mysql_fetch_array($result)) { |
1598 |
?> |
?> |
1599 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1600 |
<?= "Titel:"; ?> |
Titel: |
1601 |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
1602 |
<?= "Innehåll:"; ?> |
Innehåll: |
1603 |
<br><textarea class="textbox" cols="50" rows="6" name="content"><?= $content; ?></textarea><br> |
<br><textarea class="textbox" cols="50" rows="6" name="content"><?= $content; ?></textarea><br> |
1604 |
<input type="hidden" name="id" value="<?= $id; ?>"> |
<input type="hidden" name="id" value="<?= $id; ?>"> |
1605 |
<select name="op"> |
<select name="op"> |
1606 |
<option value="changelblock" selected><?= "Ändra block"; ?></option> |
<option value="changelblock" selected>Ändra block</option> |
1607 |
<option value="deletelblock"><?= "Ta bort block"; ?></option> |
<option value="deletelblock">Ta bort block</option> |
1608 |
</select> |
</select> |
1609 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1610 |
</form> |
</form> |
1614 |
} |
} |
1615 |
echo " |
echo " |
1616 |
<hr noshade> |
<hr noshade> |
1617 |
<font size=4><b><center>"."Skapa nytt vänsterblock"."</b></center></font><br><br>"; |
<font size=4><b><center>Skapa nytt vänsterblock</b></center></font><br><br>"; |
1618 |
?> |
?> |
1619 |
<form action="admin.php" method="post"> |
<form action="admin.php" method="post"> |
1620 |
<?= "Titel:"; ?> |
Titel: |
1621 |
<input class="textbox" type="text" name="title" size="30" maxlength="60"><br> |
<input class="textbox" type="text" name="title" size="30" maxlength="60"><br> |
1622 |
<?= "Innehåll:"; ?><br> |
Innehåll:<br> |
1623 |
<textarea class="textbox" wrap="virtual" cols="50" rows="6" name="content"></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="6" name="content"></textarea><br> |
1624 |
<input type="hidden" name="op" value="makelblock"> |
<input type="hidden" name="op" value="makelblock"> |
1625 |
<input type="submit" value="Skapa block" class="button"> |
<input type="submit" value="Skapa block" class="button"> |
1664 |
GraphicAdmin(); |
GraphicAdmin(); |
1665 |
OpenTable(); |
OpenTable(); |
1666 |
echo " |
echo " |
1667 |
<font size=4><b><center>"."Redigera adminblock"."</b></center></font><br><br> |
<font size=4><b><center>Redigera adminblock</b></center></font><br><br> |
1668 |
"; |
"; |
1669 |
$result = mysql_query("select title, content from adminblock"); |
$result = mysql_query("select title, content from adminblock"); |
1670 |
if (mysql_num_rows($result) > 0) { |
if (mysql_num_rows($result) > 0) { |
1671 |
while(list($title, $content) = mysql_fetch_array($result)) { |
while(list($title, $content) = mysql_fetch_array($result)) { |
1672 |
?> |
?> |
1673 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1674 |
<?= "Titel:"; ?> |
Titel: |
1675 |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
<input class="textbox" type="text" name="title" size="30" maxlength="60" value="<?= $title; ?>"><br> |
1676 |
<?= "Innehåll:"; ?> |
Innehåll: |
1677 |
<br><textarea class="textbox" cols="50" rows="10" name="content"><?= $content; ?></textarea><br> |
<br><textarea class="textbox" cols="50" rows="10" name="content"><?= $content; ?></textarea><br> |
1678 |
<input type="hidden" name="op" value="changeablock"> |
<input type="hidden" name="op" value="changeablock"> |
1679 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1723 |
?> |
?> |
1724 |
<font size=3> |
<font size=3> |
1725 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1726 |
<p><b><?= "Namn"; ?></b><br> |
<p><b>Namn</b><br> |
1727 |
<input class="textbox" type="text" NAME="author" SIZE="50" value="<?= $uname; ?>"> |
<input class="textbox" type="text" NAME="author" SIZE="50" value="<?= $uname; ?>"> |
1728 |
<p><b><?= "Ämne:"; ?></b><br> |
<p><b>Ämne:</b><br> |
1729 |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"> |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"> |
1730 |
<?php |
<?php |
1731 |
if($topic=="") { |
if($topic=="") { |
1738 |
<p><b>Topic</b> <select name=topic> |
<p><b>Topic</b> <select name=topic> |
1739 |
<?PHP |
<?PHP |
1740 |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
1741 |
echo "<OPTION VALUE=\"\">"."Välj ämne"."</option>\n"; |
echo "<OPTION VALUE=\"\">Välj ämne</option>\n"; |
1742 |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
1743 |
if ($topicid==$topic) { $sel = "selected "; } |
if ($topicid==$topic) { $sel = "selected "; } |
1744 |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
1746 |
} |
} |
1747 |
?> |
?> |
1748 |
</select> |
</select> |
1749 |
<p><b><?= "Intro-text"; ?></b><br> |
<p><b>Intro-text</b><br> |
1750 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $story; ?></textarea> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $story; ?></textarea> |
1751 |
<p><b><?= "Fullständig text"; ?></b><br> |
<p><b>Fullständig text</b><br> |
1752 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"></textarea><br> |
1753 |
<font size=2><?= "(Har du kontrollerat URL:arna?)"; ?></font><P> |
<font size=2>(Har du kontrollerat URL:arna?)</font><P> |
1754 |
|
|
1755 |
<p><b><?= "Anteckningar"; ?></b><br> |
<p><b>Anteckningar</b><br> |
1756 |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"></textarea><br> |
1757 |
|
|
1758 |
<input type="hidden" name="qid" size=50 value="<?= $qid; ?>"> |
<input type="hidden" name="qid" size=50 value="<?= $qid; ?>"> |
1759 |
<input type="hidden" name="uid" size=50 value="<?= $uid; ?>"> |
<input type="hidden" name="uid" size=50 value="<?= $uid; ?>"> |
1760 |
<select name="op"> |
<select name="op"> |
1761 |
<option value="DeleteStory"><?= " Ta bort artikel "; ?></option> |
<option value="DeleteStory"> Ta bort artikel </option> |
1762 |
<option value="PreviewAgain" selected><?= " Förhandsgranska igen "; ?></option> |
<option value="PreviewAgain" selected> Förhandsgranska igen </option> |
1763 |
<option value="PostStory"><?= " Posta artikel "; ?></option> |
<option value="PostStory"> Posta artikel </option> |
1764 |
</select> |
</select> |
1765 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1766 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
1781 |
?> |
?> |
1782 |
<font size="3"> |
<font size="3"> |
1783 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1784 |
<p><b><?= "Namn"; ?></b><br> |
<p><b>Namn</b><br> |
1785 |
<input class=textbox type="text" name="author" size=50 value="<?= $author; ?>"> |
<input class=textbox type="text" name="author" size=50 value="<?= $author; ?>"> |
1786 |
<p><b><?= "Ämne:"; ?></b><br> |
<p><b>Ämne:</b><br> |
1787 |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"> |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"> |
1788 |
<?php |
<?php |
1789 |
$result = mysql_query("select topicimage,topicname,topictext from topics where topicid=$topic"); |
$result = mysql_query("select topicimage,topicname,topictext from topics where topicid=$topic"); |
1790 |
list($topicimage,$topicname,$topictext) = mysql_fetch_row($result); |
list($topicimage,$topicname,$topictext) = mysql_fetch_row($result); |
1791 |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
1792 |
?> |
?> |
1793 |
<p><b><?= "Ämne"; ?></b> <select name="topic"> |
<p><b>Ämne</b> <select name="topic"> |
1794 |
<?php |
<?php |
1795 |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
1796 |
echo "<option value=\"\">"."Alla ämnen"."</option>\n"; |
echo "<option value=\"\">Alla ämnen</option>\n"; |
1797 |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
1798 |
if ($topicid==$topic) { $sel = "selected "; } |
if ($topicid==$topic) { $sel = "selected "; } |
1799 |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
1801 |
} |
} |
1802 |
?> |
?> |
1803 |
</select> |
</select> |
1804 |
<p><b><?= "Intro-text"; ?></b><br> |
<p><b>Intro-text</b><br> |
1805 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea> |
1806 |
<p><b><?= "Fullständig text"; ?></b><br> |
<p><b>Fullständig text</b><br> |
1807 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><BR> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><BR> |
1808 |
<font size="2"><?= "(Har du kontrollerat URL:arna?)"; ?></font><p> |
<font size="2">(Har du kontrollerat URL:arna?)</font><p> |
1809 |
<p><b><?= "Anteckningar"; ?></b><br> |
<p><b>Anteckningar</b><br> |
1810 |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"><?= $notes; ?></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"><?= $notes; ?></textarea><br> |
1811 |
<input type="hidden" name="qid" size="50" value="<?= $qid; ?>"> |
<input type="hidden" name="qid" size="50" value="<?= $qid; ?>"> |
1812 |
<input type="hidden" name="uid" size="50" value="<?= $uid; ?>"> |
<input type="hidden" name="uid" size="50" value="<?= $uid; ?>"> |
1813 |
<select name="op"> |
<select name="op"> |
1814 |
<option value="DeleteStory"><?= " Ta bort artikel "; ?></option> |
<option value="DeleteStory"> Ta bort artikel </option> |
1815 |
<option value="PreviewAgain" selected><?= " Förhandsgranska igen "; ?></option> |
<option value="PreviewAgain" selected> Förhandsgranska igen </option> |
1816 |
<option value="PostStory"><?= " Posta artikel "; ?></option> |
<option value="PostStory"> Posta artikel </option> |
1817 |
</select> |
</select> |
1818 |
<input type="submit" value="OK!" class="button"></form> |
<input type="submit" value="OK!" class="button"></form> |
1819 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
1865 |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
1866 |
?> |
?> |
1867 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1868 |
<p><b><?= "Ämne:"; ?></b><br> |
<p><b>Ämne:</b><br> |
1869 |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"><br> |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"><br> |
1870 |
<p><b><?= "Ämne"; ?></b> <select name="topic"> |
<p><b>Ämne</b> <select name="topic"> |
1871 |
<?php |
<?php |
1872 |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
1873 |
echo "<option value=\"\">"."Alla ämnen"."</option>\n"; |
echo "<option value=\"\">Alla ämnen</option>\n"; |
1874 |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
1875 |
if ($topicid==$topic) { $sel = "selected "; } |
if ($topicid==$topic) { $sel = "selected "; } |
1876 |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
1878 |
} |
} |
1879 |
?> |
?> |
1880 |
</select> |
</select> |
1881 |
<p><b><?= "Intro-text"; ?></b><br> |
<p><b>Intro-text</b><br> |
1882 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea> |
1883 |
<p><b><?= "Fullständig text"; ?></b><br> |
<p><b>Fullständig text</b><br> |
1884 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><br> |
1885 |
<font size="2"><?= "(Har du kontrollerat URL:arna?)"; ?></font><p> |
<font size="2">(Har du kontrollerat URL:arna?)</font><p> |
1886 |
<p><b><?= "Anteckningar"; ?></b><br> |
<p><b>Anteckningar</b><br> |
1887 |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"><?= $notes; ?></textarea><br> |
<textarea class="textbox" wrap="virtual" cols="50" rows="4" name="notes"><?= $notes; ?></textarea><br> |
1888 |
<input type="hidden" name="sid" size="50" value="<?= $sid; ?>"> |
<input type="hidden" name="sid" size="50" value="<?= $sid; ?>"> |
1889 |
<input type="hidden" name="op" value="ChangeStory"> |
<input type="hidden" name="op" value="ChangeStory"> |
1902 |
} else { |
} else { |
1903 |
include("header.php"); |
include("header.php"); |
1904 |
GraphicAdmin(); |
GraphicAdmin(); |
1905 |
echo "<center>"."Är du säker på att du vill radera artikeln med ID #"." $sid "."och alla dess kommentarer?".""; |
echo "<center>Är du säker på att du vill radera artikeln med ID # $sid och alla dess kommentarer?"; |
1906 |
echo "<br><br>[ <a href=\"admin.php\">"."Nej"."</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid&ok=1\">"."Ja"."</a> ]</center>"; |
echo "<br><br>[ <a href=\"admin.php\">Nej</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid&ok=1\">Ja</a> ]</center>"; |
1907 |
include("footer.php"); |
include("footer.php"); |
1908 |
} |
} |
1909 |
} |
} |
1929 |
OpenTable(); |
OpenTable(); |
1930 |
echo " |
echo " |
1931 |
<a name=new></a> |
<a name=new></a> |
1932 |
<center><font size=4><b>"."Ny artikel"."</b></font></center><br><br>"; ?> |
<center><font size=4><b>Ny artikel</b></font></center><br><br>"; ?> |
1933 |
<form action="admin.php" method=post> |
<form action="admin.php" method=post> |
1934 |
<p><b><?= "Titel:"; ?></b><br> |
<p><b>Titel:</b><br> |
1935 |
<input class="textbox" type="text" name="subject" size="50" value=""><br> |
<input class="textbox" type="text" name="subject" size="50" value=""><br> |
1936 |
<br> |
<br> |
1937 |
<p><b><?= "Ämne"; ?></b> |
<p><b>Ämne</b> |
1938 |
<?php |
<?php |
1939 |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
1940 |
echo "<select name=\"topic\">"; |
echo "<select name=\"topic\">"; |
1941 |
echo "<option value=\"\">"."Välj ämne"."</option>\n"; |
echo "<option value=\"\">Välj ämne</option>\n"; |
1942 |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
1943 |
if ($topicid==$topic) { $sel = "selected "; } |
if ($topicid==$topic) { $sel = "selected "; } |
1944 |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
1946 |
} |
} |
1947 |
echo "</select>"; |
echo "</select>"; |
1948 |
?> |
?> |
1949 |
<p><b><?= "Artikeln"; ?></b><br> |
<p><b>Artikeln</b><br> |
1950 |
<textarea class="textbox" wrap="virtual" cols="70" rows="12" name="hometext"></textarea><BR> |
<textarea class="textbox" wrap="virtual" cols="70" rows="12" name="hometext"></textarea><BR> |
1951 |
<p><b><?= "Utökad text"; ?></b><br> |
<p><b>Utökad text</b><br> |
1952 |
<textarea class="textbox" wrap="virtual" cols="70" rows="12" name="bodytext"></textarea><BR> |
<textarea class="textbox" wrap="virtual" cols="70" rows="12" name="bodytext"></textarea><BR> |
1953 |
<font size="2"><?= "(Är du säker på att du har inkluderat en URL? Har du stavat den helt rätt?)"; ?></font><p> |
<font size="2">(Är du säker på att du har inkluderat en URL? Har du stavat den helt rätt?)</font><p> |
1954 |
<select name="op"> |
<select name="op"> |
1955 |
<option value="PreviewAdminStory" selected><?= "Förhandsgranska adminartikel"; ?></option> |
<option value="PreviewAdminStory" selected>Förhandsgranska adminartikel</option> |
1956 |
<option value="PostAdminStory"><?= "Posta adminartikel"; ?></option> |
<option value="PostAdminStory">Posta adminartikel</option> |
1957 |
</select> |
</select> |
1958 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
1959 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
1978 |
list($topicimage,$topicname,$topictext) = mysql_fetch_row($result); |
list($topicimage,$topicname,$topictext) = mysql_fetch_row($result); |
1979 |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
themearticle($aid,$aid,"<inget datum ännu>",wordlinks($subject),wordlinks($hometext."<br>".$bodytext."<br>".$notes),$topic,$topicname,$topicimage,$topictext); |
1980 |
?> |
?> |
1981 |
<p><b><?= "Titel:"; ?></b><br> |
<p><b>Titel:</b><br> |
1982 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
1983 |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"><br> |
<input class="textbox" type="text" name="subject" size="50" value="<?= $subject; ?>"><br> |
1984 |
<p><b><?= "Ämne"; ?></b> <select name="topic"> |
<p><b>Ämne</b> <select name="topic"> |
1985 |
<?php |
<?php |
1986 |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
$toplist = mysql_query("select topicid, topictext from topics order by topictext"); |
1987 |
echo "<option value=\"\">"."Alla ämnen"."</option>\n"; |
echo "<option value=\"\">Alla ämnen</option>\n"; |
1988 |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
while(list($topicid, $topics) = mysql_fetch_row($toplist)) { |
1989 |
if ($topicid==$topic) { $sel = "selected "; } |
if ($topicid==$topic) { $sel = "selected "; } |
1990 |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
echo "<option $sel value=\"$topicid\">$topics</option>\n"; |
1992 |
} |
} |
1993 |
?> |
?> |
1994 |
</select> |
</select> |
1995 |
<p><b><?= "Artikeln"; ?></b><br> |
<p><b>Artikeln</b><br> |
1996 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea><BR><BR> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="hometext"><?= $hometext; ?></textarea><BR><BR> |
1997 |
<p><b><?= "Utökad text"; ?></b><br> |
<p><b>Utökad text</b><br> |
1998 |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><BR> |
<textarea class="textbox" wrap="virtual" cols="50" rows="12" name="bodytext"><?= $bodytext; ?></textarea><BR> |
1999 |
<select name="op"> |
<select name="op"> |
2000 |
<option value="PreviewAdminStory" selected><?= "Förhandsgranska adminartikel"; ?></option> |
<option value="PreviewAdminStory" selected>Förhandsgranska adminartikel</option> |
2001 |
<option value="PostAdminStory"><?= "Posta adminartikel"; ?></option> |
<option value="PostAdminStory">Posta adminartikel</option> |
2002 |
</select> |
</select> |
2003 |
<input type="submit" value="OK!" class="button"> |
<input type="submit" value="OK!" class="button"> |
2004 |
</td></tr></table></td></tr></table></form> |
</td></tr></table></td></tr></table></form> |
2056 |
function displayadmins() { |
function displayadmins() { |
2057 |
global $admin; |
global $admin; |
2058 |
if (!isset($config)) include("config.php"); |
if (!isset($config)) include("config.php"); |
2059 |
$titlebar = "<b>"."nuvarande skribenter"."</b>"; |
$titlebar = "<b>nuvarande skribenter</b>"; |
2060 |
include("header.php"); |
include("header.php"); |
2061 |
dbconnect(); |
dbconnect(); |
2062 |
GraphicAdmin(); |
GraphicAdmin(); |
2063 |
OpenTable(); |
OpenTable(); |
2064 |
echo " |
echo " |
2065 |
<font size=4><center><b>"."Redigera administratörer"."<br><br></font></center></b> |
<font size=4><center><b>Redigera administratörer<br><br></font></center></b> |
2066 |
"; |
"; |
2067 |
$result = mysql_query("select aid, name from authors"); |
$result = mysql_query("select aid, name from authors"); |
2068 |
echo "<table border=1>"; |
echo "<table border=1>"; |
2069 |
while(list($a_aid, $name) = mysql_fetch_row($result)) { |
while(list($a_aid, $name) = mysql_fetch_row($result)) { |
2070 |
echo "<tr><td>$a_aid</td>"; |
echo "<tr><td>$a_aid</td>"; |
2071 |
echo "<td><a href=\"admin.php?op=modifyadmin&chng_aid=$a_aid\">"."Modifiera info"."</a></td>"; |
echo "<td><a href=\"admin.php?op=modifyadmin&chng_aid=$a_aid\">Modifiera info</a></td>"; |
2072 |
if($name=="God") { |
if($name=="God") { |
2073 |
} else { |
} else { |
2074 |
echo "<td><a href=\"admin.php?op=deladmin&del_aid=$a_aid\">"."Ta bort skribent"."</a></td></tr>"; |
echo "<td><a href=\"admin.php?op=deladmin&del_aid=$a_aid\">Ta bort skribent</a></td></tr>"; |
2075 |
} |
} |
2076 |
} |
} |
2077 |
?> |
?> |
2078 |
</table> |
</table> |
2079 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
2080 |
<table cols="2" border="0"> |
<table cols="2" border="0"> |
2081 |
<tr><td width="100"><?= "Användarnamn";?>*</td> |
<tr><td width="100">Användarnamn*</td> |
2082 |
<td><input class="textbox" type="text" name="add_aid" size="30" maxlength="30"></td></tr> |
<td><input class="textbox" type="text" name="add_aid" size="30" maxlength="30"></td></tr> |
2083 |
<tr><td><?= "Namn";?>*</td> |
<tr><td>Namn*</td> |
2084 |
<td><input class="textbox" type="text" name="add_name" size="30" maxlength="50"></td></tr> |
<td><input class="textbox" type="text" name="add_name" size="30" maxlength="50"></td></tr> |
2085 |
<tr><td><?= "E-post";?>*</td> |
<tr><td>E-post*</td> |
2086 |
<td><input class="textbox" type="text" name="add_email" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="add_email" size="30" maxlength="60"></td></tr> |
2087 |
<tr><td><?= "URL";?></td> |
<tr><td>URL</td> |
2088 |
<td><input class="textbox" type="text" name="add_url" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="add_url" size="30" maxlength="60"></td></tr> |
2089 |
<tr><td><?= "Lösenord";?>*</td> |
<tr><td>Lösenord*</td> |
2090 |
<td><input class="textbox" type="text" name="add_pwd" size="12" maxlength="12"></td></tr> |
<td><input class="textbox" type="text" name="add_pwd" size="12" maxlength="12"></td></tr> |
2091 |
<input type="hidden" name="op" value="AddAuthor"> |
<input type="hidden" name="op" value="AddAuthor"> |
2092 |
<tr><td colspan="2"><input type="submit" value="Lägg till skribent" class="button"></td></tr> |
<tr><td colspan="2"><input type="submit" value="Lägg till skribent" class="button"></td></tr> |
2093 |
</table></form> |
</table></form> |
2094 |
<?= "<center><font color=Red>"."* indikerar obligatoriska fält"."</font></center>"; ?> |
<center><font color=Red>* indikerar obligatoriska fält</font></center> |
2095 |
</td></tr></table></td></tr></table> |
</td></tr></table></td></tr></table> |
2096 |
<? |
<? |
2097 |
include("footer.php"); |
include("footer.php"); |
2098 |
} |
} |
2099 |
|
|
2100 |
function modifyadmin($chng_aid) { |
function modifyadmin($chng_aid) { |
2101 |
$titlebar = "<b>"."uppdatera"." $chng_aid</b>"; |
$titlebar = "<b>uppdatera $chng_aid</b>"; |
2102 |
include("header.php"); |
include("header.php"); |
2103 |
dbconnect(); |
dbconnect(); |
2104 |
GraphicAdmin(); |
GraphicAdmin(); |
2108 |
?> |
?> |
2109 |
<form action="admin.php" method="post"> |
<form action="admin.php" method="post"> |
2110 |
<table cols="2" border="0"> |
<table cols="2" border="0"> |
2111 |
<tr><td width="100"><?= "Namn";?></td> |
<tr><td width="100">Namn</td> |
2112 |
<td><?= $chng_name ?><input type="hidden" name="chng_name" value="<? echo $chng_name ?>"></td></tr> |
<td><?= $chng_name ?><input type="hidden" name="chng_name" value="<? echo $chng_name ?>"></td></tr> |
2113 |
<tr><td><?= "Användarnamn";?>*</td> |
<tr><td>Användarnamn*</td> |
2114 |
<td><input class="textbox" type="text" name="chng_aid" value="<? echo $chng_aid?>"></td></tr> |
<td><input class="textbox" type="text" name="chng_aid" value="<? echo $chng_aid?>"></td></tr> |
2115 |
<tr><td><?= "E-post";?>*</td> |
<tr><td>E-post*</td> |
2116 |
<td><input class="textbox" type="text" name="chng_email" value="<? echo $chng_email?>" size=30 maxlength=60></td></tr> |
<td><input class="textbox" type="text" name="chng_email" value="<? echo $chng_email?>" size=30 maxlength=60></td></tr> |
2117 |
<tr><td><?= "URL";?></td> |
<tr><td>URL</td> |
2118 |
<td><input class="textbox" type="text" name="chng_url" value="<? echo $chng_url?>" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="chng_url" value="<? echo $chng_url?>" size="30" maxlength="60"></td></tr> |
2119 |
<tr><td><?= "Lösenord"?></td> |
<tr><td><?= "Lösenord"?></td> |
2120 |
<td><input class="textbox" type="password" name="chng_pwd" size="12" maxlength="12"></td></tr> |
<td><input class="textbox" type="password" name="chng_pwd" size="12" maxlength="12"></td></tr> |
2121 |
<tr><td><?= "Skriv om lösenordet";?></td> |
<tr><td>Skriv om lösenordet</td> |
2122 |
<td><input class="textbox" type="password" name="chng_pwd2" size="12" maxlength="12"> <?= "(endast för ändringar)";?></td></tr> |
<td><input class="textbox" type="password" name="chng_pwd2" size="12" maxlength="12"> (endast för ändringar)</td></tr> |
2123 |
<input type="hidden" name="op" value="UpdateAuthor"> |
<input type="hidden" name="op" value="UpdateAuthor"> |
2124 |
<tr><td colspan="2"><input type="submit" value="Uppdatera skribent" class="button"></td></tr> |
<tr><td colspan="2"><input type="submit" value="Uppdatera skribent" class="button"></td></tr> |
2125 |
</table></form> |
</table></form> |
2126 |
<?= "* indikerar obligatoriska fält"; ?></font> |
* indikerar obligatoriska fält</font> |
2127 |
</td></tr></table></td></tr></table> |
</td></tr></table></td></tr></table> |
2128 |
<? |
<? |
2129 |
include("footer.php"); |
include("footer.php"); |
2135 |
|
|
2136 |
if ($chng_pwd2 != "") { |
if ($chng_pwd2 != "") { |
2137 |
if($chng_pwd != $chng_pwd2) { |
if($chng_pwd != $chng_pwd2) { |
2138 |
$titlebar = "<b>"."bad pass"."</b>"; |
$titlebar = "<b>bad pass</b>"; |
2139 |
include("header.php"); |
include("header.php"); |
2140 |
GraphicAdmin(); |
GraphicAdmin(); |
2141 |
echo "Tyvärr, lösenorden matchar inte. Gå tillbaks och försök igen"; |
echo "Tyvärr, lösenorden matchar inte. Gå tillbaks och försök igen"; |
2163 |
GraphicAdmin(); |
GraphicAdmin(); |
2164 |
OpenTable(); |
OpenTable(); |
2165 |
echo " |
echo " |
2166 |
<font size=4><b><center>"."Redigera användare"."<br><br></b></font></center>"; |
<font size=4><b><center>Redigera användare<br><br></b></font></center>"; |
2167 |
echo "<form method=post action=\"admin.php\">"; |
echo "<form method=post action=\"admin.php\">"; |
2168 |
echo "<b>"."Användar-ID".": </b> <input class=\"textbox\" type=\"text\" name=\"chng_uid\" size=\"10\">\n"; |
echo "<b>Användar-ID: </b> <input class=\"textbox\" type=\"text\" name=\"chng_uid\" size=\"10\">\n"; |
2169 |
echo "<select name=\"op\">"; |
echo "<select name=\"op\">"; |
2170 |
echo "<option value=\"modifyUser\">"."Modifiera användare"."</option>\n"; |
echo "<option value=\"modifyUser\">Modifiera användare</option>\n"; |
2171 |
echo "<option value=\"delUser\">"."Ta bort användare"."</option></select>\n"; |
echo "<option value=\"delUser\">Ta bort användare</option></select>\n"; |
2172 |
echo "<input type=\"submit\" value=\"OK!\" class=\"button\"></form>"; |
echo "<input type=\"submit\" value=\"OK!\" class=\"button\"></form>"; |
2173 |
?> |
?> |
2174 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
2175 |
<table cols="2" border="0" width="100%"> |
<table cols="2" border="0" width="100%"> |
2176 |
<tr><td width="100"><?= "Användarnamn";?>*</td> |
<tr><td width="100">Användarnamn*</td> |
2177 |
<td><input class="textbox" type="text" name="add_uname" size="30" maxlength="25"></td></tr> |
<td><input class="textbox" type="text" name="add_uname" size="30" maxlength="25"></td></tr> |
2178 |
<tr><td><?= "Namn";?></td> |
<tr><td>Namn</td> |
2179 |
<td><input class="textbox" type="text" name="add_name" size="30" maxlength="50"></td></tr> |
<td><input class="textbox" type="text" name="add_name" size="30" maxlength="50"></td></tr> |
2180 |
<tr><td><?= "E-post";?>*</td> |
<tr><td>E-post*</td> |
2181 |
<td><input class="textbox" type="text" name="add_email" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="add_email" size="30" maxlength="60"></td></tr> |
2182 |
<tr><td><?= "Fejkad e-postadress";?></td> |
<tr><td>Fejkad e-postadress</td> |
2183 |
<td><input class="textbox" type="text" name="add_femail" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="add_femail" size="30" maxlength="60"></td></tr> |
2184 |
<tr><td><?= "URL";?></td> |
<tr><td>URL</td> |
2185 |
<td><input class="textbox" type="text" name="add_url" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="add_url" size="30" maxlength="60"></td></tr> |
2186 |
<tr><td><?= "Lösenord";?>*</td> |
<tr><td>Lösenord*</td> |
2187 |
<td><input class="textbox" type="text" name="add_pass" size="12" maxlength="12"></td></tr> |
<td><input class="textbox" type="text" name="add_pass" size="12" maxlength="12"></td></tr> |
2188 |
<input type="hidden" name="op" value="addUser"> |
<input type="hidden" name="op" value="addUser"> |
2189 |
<tr><td colspan="2"><input type="submit" value="Lägg till användare" class="button"></td></tr> |
<tr><td colspan="2"><input type="submit" value="Lägg till användare" class="button"></td></tr> |
2190 |
</table></form> |
</table></form> |
2191 |
<?= "<center><font color=Red> "."* indikerar obligatoriska fält"." "; ?></font> |
<center><font color=Red> * indikerar obligatoriska fält </font> |
2192 |
</td></tr></table></td></tr></table> |
</td></tr></table></td></tr></table> |
2193 |
<? |
<? |
2194 |
include("footer.php"); |
include("footer.php"); |
2203 |
while(list($chng_uid, $chng_uname, $chng_name, $chng_url, $chng_email, $chng_femail, $chng_pass) = mysql_fetch_row($result)) { |
while(list($chng_uid, $chng_uname, $chng_name, $chng_url, $chng_email, $chng_femail, $chng_pass) = mysql_fetch_row($result)) { |
2204 |
echo " |
echo " |
2205 |
<b><center> |
<b><center> |
2206 |
"."Uppdatera användare".": $chng_uname |
Uppdatera användare: $chng_uname |
2207 |
<br><br></b></center>"; |
<br><br></b></center>"; |
2208 |
OpenTable(); |
OpenTable(); |
2209 |
?> |
?> |
2210 |
<form action="admin.php" method="get"> |
<form action="admin.php" method="get"> |
2211 |
<table border=0> |
<table border=0> |
2212 |
<tr><td><?= "Användar-ID";?></td> |
<tr><td>Användar-ID</td> |
2213 |
<td><?= $chng_uid ?></td></tr> |
<td><?= $chng_uid ?></td></tr> |
2214 |
<tr><td><?= "Användarnamn";?>*</td> |
<tr><td>Användarnamn*</td> |
2215 |
<td><input class="textbox" type="text" name="chng_uname" value="<?= $chng_uname ?>"></td></tr> |
<td><input class="textbox" type="text" name="chng_uname" value="<?= $chng_uname ?>"></td></tr> |
2216 |
<tr><td width="100"><?= "Namn";?></td> |
<tr><td width="100">Namn</td> |
2217 |
<td><input class="textbox" type="text" name="chng_name" value="<?= $chng_name ?>"></td></tr> |
<td><input class="textbox" type="text" name="chng_name" value="<?= $chng_name ?>"></td></tr> |
2218 |
<tr><td><?= "URL";?></td> |
<tr><td>URL</td> |
2219 |
<td><input class="textbox" type="text" name="chng_url" value="<?= $chng_url ?>" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="chng_url" value="<?= $chng_url ?>" size="30" maxlength="60"></td></tr> |
2220 |
<tr><td><?= "E-post";?>*</td> |
<tr><td>E-post*</td> |
2221 |
<td><input class="textbox" type="text" name="chng_email" value="<?= $chng_email ?>" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="chng_email" value="<?= $chng_email ?>" size="30" maxlength="60"></td></tr> |
2222 |
<tr><td><?= "Fejkad e-postadress";?></td> |
<tr><td>Fejkad e-postadress</td> |
2223 |
<td><input class="textbox" type="text" name="chng_femail" value="<?= $chng_femail ?>" size="30" maxlength="60"></td></tr> |
<td><input class="textbox" type="text" name="chng_femail" value="<?= $chng_femail ?>" size="30" maxlength="60"></td></tr> |
2224 |
<tr><td><?= "Lösenord"?></td> |
<tr><td><?= "Lösenord"?></td> |
2225 |
<td><input class="textbox" type="password" name="chng_pass" size="12" maxlength="12"></td></tr> |
<td><input class="textbox" type="password" name="chng_pass" size="12" maxlength="12"></td></tr> |
2226 |
<tr><td><?= "Skriv om lösenordet";?></td> |
<tr><td>Skriv om lösenordet</td> |
2227 |
<td><input class="textbox" type="password" name="chng_pass2" size="12" maxlength="12"> <?= "(endast för ändringar)";?></td></tr> |
<td><input class="textbox" type="password" name="chng_pass2" size="12" maxlength="12"> (endast för ändringar)</td></tr> |
2228 |
<input type="hidden" name="chng_uid" value="<?= $chng_uid; ?>"> |
<input type="hidden" name="chng_uid" value="<?= $chng_uid; ?>"> |
2229 |
<input type="hidden" name="op" value="updateUser"> |
<input type="hidden" name="op" value="updateUser"> |
2230 |
<tr><td colspan=2><input type="submit" value="Uppdatera användare" class="button"></td></tr> |
<tr><td colspan=2><input type="submit" value="Uppdatera användare" class="button"></td></tr> |
2231 |
</table></form> |
</table></form> |
2232 |
<? |
<? |
2233 |
} |
} |
2234 |
echo "<center><font color=Red>"."* indikerar obligatoriska fält"."</font>"; |
echo "<center><font color=Red>* indikerar obligatoriska fält</font>"; |
2235 |
echo "</td></tr></table></td></tr></table>"; |
echo "</td></tr></table></td></tr></table>"; |
2236 |
} else { |
} else { |
2237 |
echo "<center>"; |
echo "<center>"; |
2245 |
$tmp = 0; |
$tmp = 0; |
2246 |
if ($chng_pass2 != "") { |
if ($chng_pass2 != "") { |
2247 |
if($chng_pass != $chng_pass2) { |
if($chng_pass != $chng_pass2) { |
2248 |
$titlebar = "<b>"."bad pass"."</b>"; |
$titlebar = "<b>bad pass</b>"; |
2249 |
include("header.php"); |
include("header.php"); |
2250 |
GraphicAdmin(); |
GraphicAdmin(); |
2251 |
echo " |
echo " |
2252 |
<center>"."Tyvärr, lösenorden matchar inte. Gå tillbaks och försök igen"."</center>"; |
<center>Tyvärr, lösenorden matchar inte. Gå tillbaks och försök igen</center>"; |
2253 |
include("footer.php"); |
include("footer.php"); |
2254 |
exit; |
exit; |
2255 |
} |
} |
2278 |
GraphicAdmin(); |
GraphicAdmin(); |
2279 |
OpenTable(); |
OpenTable(); |
2280 |
?> |
?> |
2281 |
<font size="4"><b><center><?= "Skapa en ny undersökning"; ?><br></font> |
<font size="4"><b><center>Skapa en ny undersökning<br></font> |
2282 |
<font size="2"><a href="admin.php?op=remove"><?= "Ta bort undersökning"; ?></a><br><br></font></center> |
<font size="2"><a href="admin.php?op=remove">Ta bort undersökning</a><br><br></font></center> |
2283 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
2284 |
<input type="hidden" name="op" value="createPosted"> |
<input type="hidden" name="op" value="createPosted"> |
2285 |
<p><?= "Titel på undersökningen"; ?>: <input class="textbox" type="text" name="pollTitle" size="50" maxlength="100"></p> |
<p>Titel på undersökningen: <input class="textbox" type="text" name="pollTitle" size="50" maxlength="100"></p> |
2286 |
<p><?= "Skriv varje val i varsitt fält"; ?></p> |
<p>Skriv varje val i varsitt fält</p> |
2287 |
<table> |
<table> |
2288 |
<?php |
<?php |
2289 |
for($i = 1; $i <= $maxOptions; $i++) |
for($i = 1; $i <= $maxOptions; $i++) |
2290 |
{ |
{ |
2291 |
echo "<tr>"; |
echo "<tr>"; |
2292 |
echo "<td>"."Val"." $i:</td><td><input class=\"textbox\" type=\"text\" name=\"optionText[$i]\" size=\"50\" maxlength=\"50\"></td>"; |
echo "<td>Val $i:</td><td><input class=\"textbox\" type=\"text\" name=\"optionText[$i]\" size=\"50\" maxlength=\"50\"></td>"; |
2293 |
echo "</tr>\n"; |
echo "</tr>\n"; |
2294 |
} |
} |
2295 |
|
|
2354 |
GraphicAdmin(); |
GraphicAdmin(); |
2355 |
OpenTable(); |
OpenTable(); |
2356 |
?> |
?> |
2357 |
<font size="4"><b><center><?= "Ta bort en existerande undersökning"; ?></b></center><br><br></font> |
<font size="4"><b><center>Ta bort en existerande undersökning</b></center><br><br></font> |
2358 |
<font size="2"><center><?= "VARNING: Den valda undersökningen tas bort OMEDELBART från databasen!"; ?></center> |
<font size="2"><center>VARNING: Den valda undersökningen tas bort OMEDELBART från databasen!</center> |
2359 |
<p><?= "Välj en undersökning från listan nedan."; ?></p> |
<p>Välj en undersökning från listan nedan.</p> |
2360 |
<form action="admin.php" method="POST"> |
<form action="admin.php" method="POST"> |
2361 |
<input type="hidden" name="op" value="removePosted"> |
<input type="hidden" name="op" value="removePosted"> |
2362 |
<table> |
<table> |
2391 |
function poll_viewPoll() { |
function poll_viewPoll() { |
2392 |
include ('header.php'); |
include ('header.php'); |
2393 |
GraphicAdmin(); |
GraphicAdmin(); |
2394 |
echo "<font size=4>"."Visa undersökningsresultat"."</font>"; |
echo "<font size=4>Visa undersökningsresultat</font>"; |
2395 |
dbconnect(); |
dbconnect(); |
2396 |
echo "<p>"; |
echo "<p>"; |
2397 |
|
|
2420 |
include ('header.php'); |
include ('header.php'); |
2421 |
GraphicAdmin(); |
GraphicAdmin(); |
2422 |
global $id; |
global $id; |
2423 |
echo "<font size=4>"."Visa undersökningsresultat"."</font><p>"; |
echo "<font size=4>Visa undersökningsresultat</font><p>"; |
2424 |
pollResults($id); |
pollResults($id); |
2425 |
include ('footer.php'); |
include ('footer.php'); |
2426 |
} |
} |
2734 |
break; |
break; |
2735 |
|
|
2736 |
case "deladmin": |
case "deladmin": |
2737 |
$titlebar = "<b>"."ta bort"." $del_aid "."- är du säker?"."</b>"; |
$titlebar = "<b>ta bort $del_aid - är du säker?</b>"; |
2738 |
include("header.php"); |
include("header.php"); |
2739 |
echo "<b> "."Ta bort skribent"."</b><br><br>"; |
echo "<b> Ta bort skribent</b><br><br>"; |
2740 |
echo "Är du säker på att du vill radera "." $del_aid? "; |
echo "Är du säker på att du vill radera $del_aid? "; |
2741 |
echo "[ <a href=\"admin.php?op=deladminconf&del_aid=$del_aid\">"."Ja"."</a> | <a href=\"admin.php?op=adminMain\">"."Nej"."</a> ]"; |
echo "[ <a href=\"admin.php?op=deladminconf&del_aid=$del_aid\">Ja</a> | <a href=\"admin.php?op=adminMain\">Nej</a> ]"; |
2742 |
include("footer.php"); |
include("footer.php"); |
2743 |
break; |
break; |
2744 |
|
|
2763 |
|
|
2764 |
case "delUser": |
case "delUser": |
2765 |
include("header.php"); |
include("header.php"); |
2766 |
$titlebar = "<h3>"."Ta bort användare"."</h3>"; |
$titlebar = "<h3>Ta bort användare</h3>"; |
2767 |
echo $titlebar; |
echo $titlebar; |
2768 |
echo "Är du säker på att du vill radera " . " " . "Användare" . " $chng_uid? "; |
echo "Är du säker på att du vill radera Användare $chng_uid? "; |
2769 |
echo "[ <a href=\"admin.php?op=delUserConf&del_uid=$chng_uid\">"."Ja"."</a> | <a href=\"admin.php?op=adminMain\">"."Nej"."</a> ]"; |
echo "[ <a href=\"admin.php?op=delUserConf&del_uid=$chng_uid\">Ja</a> | <a href=\"admin.php?op=adminMain\">Nej</a> ]"; |
2770 |
include("footer.php"); |
include("footer.php"); |
2771 |
break; |
break; |
2772 |
|
|
2832 |
$titlebar = "Utloggad"; |
$titlebar = "Utloggad"; |
2833 |
include("header.php"); |
include("header.php"); |
2834 |
echo "<center><font size=4>"; |
echo "<center><font size=4>"; |
2835 |
echo "Du är nu utloggad"."<br><br>"; |
echo "Du är nu utloggad<br><br>"; |
2836 |
include("footer.php"); |
include("footer.php"); |
2837 |
break; |
break; |
2838 |
|
|