67 lines
2.4 KiB
PHP
Executable File
67 lines
2.4 KiB
PHP
Executable File
<?php
|
|
|
|
$html = "<center><h2>Videos</h2>";
|
|
|
|
$ergebnis = variable_recherche( $_SESSION[ "mandant_name" ], "USERPLUGIN", $_SESSION[ "benutzer_anmeldename"], array( "alpha_03"=>$_SESSION[ "benutzer_anmeldename"], "alpha_02"=>"us_plugin_youtube" ), array( "alpha_06"=> "asc" ) , 250 );
|
|
|
|
if ( $ergebnis[0 ] > 0 )
|
|
{
|
|
foreach( $ergebnis[ 2 ] as $treffer)
|
|
{
|
|
xlog( 3, json_encode( $treffer ) );
|
|
}
|
|
}
|
|
|
|
|
|
$admin_tab_li = "<li><a href='#admin'>Admin</a></li>";
|
|
$admin_tab_div = "<div id='us_plugin_video_admin' ><div id='admin' style='align:left;'>
|
|
<form name='video_speichern' action='su_web.php?cmd=plugin_inhalt_speichern&mandant_name=".urlencode( $_SESSION[ "mandant_name" ] )."&benutzer_anmeldename=".urlencode( $_SESSION[ "benutzer_anmeldename" ] )."' method='post' accept-charset='UTF-8'>
|
|
<input type='hidden' name='aufgerufen' value='aufgerufen' />
|
|
<table>
|
|
<tr>
|
|
<td>Titel</td>
|
|
<td><input type='text' style='width:280px;' name='alpha_01' /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Rubrik</td>
|
|
<td><input type='text' style='width:280px;' name='alpha_02' /></td>
|
|
</tr>
|
|
<tr>
|
|
<td style='vertical-align:top'>ULINK</td>
|
|
<td><textarea style='width:380px; height:200px;' name='alpha_03' ></textarea></td>
|
|
</tr>
|
|
</table>
|
|
<input type='submit' style='margin-left:15px;' value='speichern'>
|
|
</form>
|
|
</div></div>";
|
|
$dok_id = "";
|
|
|
|
if ( $ergebnis[ 0 ] > 0 )
|
|
{
|
|
$html = $html."<p style='height:12px;' /><center>Videos</center><p style='height:15px;' />";
|
|
$dok_id = $ergebnis[ 2 ][ 0 ][ "dok_id" ];
|
|
|
|
}
|
|
else if ( $ergebnis[ 0 ] == 0 )
|
|
{
|
|
$html = $html."<p style='height:15px;' /><center>Es wurden keine Videos gefunden!</center><p style='height:15px;' />";
|
|
}
|
|
else
|
|
{
|
|
$html = $html."<p style='height:15px;' /><center>Es ist ein Fehler aufgetreten!</center><p style='height:15px;' />";
|
|
}
|
|
|
|
$rahmen_kopf = "<div id='tabs_admin' style='display:none;' >";
|
|
$rahmen_fuss = "</div>";
|
|
$button = "<input type='button' onclick='$(\"#tabs_admin\").toggle();' value='Videos anlegen ein-/ausblenden' />";
|
|
$script = "<script>$( function() { $('#tabs_admin').tabs();} )</script>";
|
|
|
|
$html = $html.$script.$button.$rahmen_kopf."<ul>".$user_tabs_li.$admin_tab_li."</ul>".$user_tabs_div.$admin_tab_div.$rahmen_fuss;
|
|
|
|
|
|
|
|
|
|
echo $html;
|
|
$html = "";
|
|
|
|
?>
|