Пример #1
0
 function StatGraph($ID = false, $Filename = false)
 {
     global $nsProduct, $nsTemplate, $Lang;
     if (!$ID) {
         $ID = time();
     }
     $this->ID = $ID;
     if (!$Filename) {
         $Filename = "graph1.swf";
     }
     $this->Path = FileLink("graph/" . $Filename);
     //$this->Path=PATH."/skins/".$nsProduct->SKIN."/graph/".$Filename;
     $this->ZoneCnt = 5;
     $this->Vars = array();
     $this->Vars['choose_text'] = $Lang['ChooseGraphType'];
     // Flash/GD
     $this->DumpMode = "Flash";
     $this->Display = false;
     $this->CanDump = false;
     $this->Name = false;
 }
Пример #2
0
                echo " ";
            }
            ?>
		</td>	
	<?php 
        }
        ?>
	</tr>

	<tr>
	<td width="100%" height="1" colspan="<?php 
        echo count($FldNames);
        ?>
" bgcolor="#E1E1E1">
	<p><img src="<?php 
        echo FileLink("images/0.gif");
        ?>
" width="1" height="1" border="0"></p>
	</td>
	</tr>
<?php 
    }
    ?>


</table>
<?php 
} else {
    include $nsTemplate->Inc("inc/no_records");
}
?>
Пример #3
0
<?php

include $nsTemplate->Inc("inc/header");
include $nsTemplate->Inc("inc/submenu");
?>

<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td width=18%>

</td><td width=82%>

	<table  cellpadding=6 cellspacing=0 border=0 width=100%>
	<tr>
	<td valign=top width=32><p><IMG SRC="<?php 
echo FileLink("images/admin_track.gif");
?>
" WIDTH="32" align=middle vspace=2 hspace=5 HEIGHT="24" BORDER="0" ALT=""></p></td>
	<td  width="100%" valign="top"><span class=SectionName><?php 
echo $Lang['Title2'];
?>
</span>
	
<table width=100% cellpadding=0 cellspacing=0 border=0 class=SectionTable>

<tr><td class=SectionTd>
<a href="<?php 
echo getURL("group_order", "Mode=NATURAL&CompanyId={$CpId}", "admin");
?>
"><?php 
echo $Lang['NaturalOrder'];
?>
Пример #4
0
</a></span><br>
<?php 
echo $Lang['VisPathsDescr'];
?>
</td></tr>


<?php 
if ($Settings['All']->FRAUD_ENABLE) {
    ?>
<tr>
<td valign=top><p><a href="<?php 
    echo getURL("compare", "CpId={$CpId}&SiteId={$SiteId}", "report");
    ?>
"><IMG SRC="<?php 
    echo FileLink("images/logs_compare.gif");
    ?>
" WIDTH="32" align=middle hspace=5 vspace=3 HEIGHT="28" BORDER="0" ALT=""></a></p></td>
<td  width="50%" valign="top" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#E6E6E6;"><span class=SectionName>
<a href="<?php 
    echo getURL("compare", "CpId={$CpId}&SiteId={$SiteId}", "report");
    ?>
"><?php 
    echo $Lang['Compare'];
    ?>
</a></span><br>
<?php 
    echo $Lang['CompareDescr'];
    ?>
</td>
<td valign=top><p></p></td>
Пример #5
0
function MenuTab($Name, $Url, $Selected = false, $Img = false, $Width = false, $Height = false)
{
    if (!$Selected) {
        ?>
		<td class=TabsBorder2 align=center>
		<p class=TabsMenu><a href="<?php 
        echo $Url;
        ?>
">
		<?php 
        if ($Img) {
            ?>
		<IMG SRC="<?php 
            echo FileLink("images/small_icon_" . $Img . ".gif");
            ?>
" WIDTH="<?php 
            echo $Width;
            ?>
" HEIGHT="<?php 
            echo $Height;
            ?>
" BORDER="0" title="<?php 
            echo $Name;
            ?>
">&nbsp;
		<?php 
        }
        ?>

		<?php 
        echo $Name;
        ?>
</a></p>
		</td>
		<?php 
    }
    if ($Selected) {
        ?>

	<td align=left>
		<table width=100% cellpadding=0 cellspacing=0 border=0 height=27>
		<tr><td valign=top width=9>
		<p><img src="<?php 
        echo FileLink("images/corn_02.gif");
        ?>
" width="9" height="27" border="0"></p>
		</td><td align=center style="border-top-color:#86c71d;border-top-style:solid;border-top-width:1px;border-bottom-color:#ffffff;border-bottom-style:solid;border-bottom-width:2px;">
		<p class=TabsMenuSel><a href="<?php 
        echo $Url;
        ?>
">
		<?php 
        if ($Img) {
            ?>
		<IMG SRC="<?php 
            echo FileLink("images/small_icon_" . $Img . "-a.gif");
            ?>
" WIDTH="<?php 
            echo $Width;
            ?>
" HEIGHT="<?php 
            echo $Height;
            ?>
" BORDER="0" title="<?php 
            echo $Name;
            ?>
">&nbsp;
		<?php 
        }
        ?>
		<?php 
        echo $Name;
        ?>
</a></p>
		</td><td valign=top width=9>
		<p><img src="<?php 
        echo FileLink("images/corn_03.gif");
        ?>
" width="9" height="27" border="0"></p>
		</td></tr>
		</table>
	</td>

	<?php 
    }
}
Пример #6
0
</a>
	</td></tr>

	</table>

	</td></tr>
	<?php 
}
?>

	<?php 
if ($nsUser->ADMIN || $nsUser->SUPER_USER && $nsProduct->LICENSE != 3) {
    ?>
	<tr>
	<td valign=top width=32><p><IMG SRC="<?php 
    echo FileLink("images/admin_general.gif");
    ?>
" WIDTH="32" align=middle hspace=5 HEIGHT="28" BORDER="0" ALT=""></p></td>
	<td  width="100%" valign="top"><span class=SectionName><?php 
    echo $Lang['ProgramSets'];
    ?>
</span>
	
	<table width=100% cellpadding=0 cellspacing=0 border=0 class=SectionTable>

	<tr><td class=SectionTd>
	<a href="<?php 
    echo getURL("misc_config", "", "admin");
    ?>
"><?php 
    echo $Lang['GeneralSets'];
Пример #7
0
">
	<?php 
        echo $Row->PATH;
        ?>
 - <?php 
        echo $Row->NAME;
        ?>
	</a>
	<a href="<?php 
        echo getURL("actions", "Mode=new&EditId=new&SiteId={$HostId}&CpId={$CpId}&PageId=" . $Row->ID, "admin");
        ?>
" title="<?php 
        echo $Lang['CreateAction'];
        ?>
"><IMG SRC="<?php 
        echo FileLink("images/small_icon_actions-a.gif");
        ?>
" WIDTH="4" HEIGHT="8" BORDER="0" ALT=""></a>

	</td></tr>

<?php 
    }
    ?>

<tr><td colspan=2>
<?php 
    echo $Pages->Dump();
    ?>
</td></tr>
</table>
Пример #8
0
</SCRIPT>
<?php 
echo GetForm(false, "CpId={$CpId}", false, "ID=\"DisableHelpForm\"");
?>
<input type=hidden name="DisableHelp" value=1>
</form>


<div ID="HelpBlock" style="display:<?php 
echo $Consult->Display;
?>
">
<div  class=ConsultBlock>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr><td width=11><p><IMG SRC="<?php 
echo FileLink("images/corn_05.gif");
?>
" WIDTH="11" HEIGHT="2" BORDER="0" ALT=""></p>
</td><td width=100% bgcolor="#86C71D">
</td><td width=142 bgcolor="#86C71D">
</td></tr>

<tr><td width=11 bgcolor="#86C71D" valign=top align=center><p><IMG SRC="<?php 
echo FileLink("images/0.gif");
?>
" WIDTH="1" HEIGHT="14" BORDER="0" ALT=""><IMG SRC="<?php 
echo FileLink("images/arrow_03.gif");
?>
" WIDTH="3" HEIGHT="5" BORDER="0" ALT=""></p>
</td><td width=100% style="padding:5px;">
Пример #9
0
 function DumpArrows()
 {
     global $nsLang, $nsTemplate;
     $Lang = $nsLang->TplReturn("pagenums.class");
     echo "<tr><td align=center><IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\">";
     if ($this->PageCurrent > 0) {
         $Prev = $this->Filename;
         if (MOD_R) {
             $Prev .= "?";
         }
         $Prev .= $this->StartStr . "=0";
         $Prev .= "&" . $this->CurStr . "=0";
         $Prev .= $this->Args;
         if (!$this->NoPrevPrev) {
             echo "<span title=\"" . $Lang['First'] . "\" class=\"" . $this->PrevNextClass . "\"><a href=\"" . $Prev . "\"><IMG SRC=\"" . FileLink("images/page_first.gif") . "\" WIDTH=11 HEIGHT=11 BORDER=0 ALT=\"\">&nbsp;" . $Lang['First'] . "</a></span><IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\">";
         }
         $Prev = $this->Filename;
         if (MOD_R) {
             $Prev .= "?";
         }
         $Prev .= $this->StartStr . "=" . ($this->PageCurrent - 1) * $this->Limit;
         $Prev .= "&" . $this->CurStr . "=" . ($this->PageCurrent - 1);
         $Prev .= $this->Args;
         if (!$this->NoPrev) {
             echo "<span title=\"" . $Lang['Prev'] . "\" class=\"" . $this->PrevNextClass . "\"><a href=\"" . $Prev . "\"><IMG SRC=\"" . FileLink("images/page_prev.gif") . "\" WIDTH=11 HEIGHT=11 BORDER=0 ALT=\"\">&nbsp;" . $Lang['Prev'] . "</a></span><IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\">";
         }
     }
     $To = $this->PageStart + $this->Limit;
     if ($To > $this->RecCount) {
         $To = $this->RecCount;
     }
     echo " <span style=\"font-size:10px;\">" . ($this->PageStart + 1) . " &mdash; {$To} " . $Lang['Of'] . " " . $this->RecCount . "</span> ";
     if ($this->PageCurrent < $this->Pages - 1) {
         $Prev = $this->Filename;
         if (MOD_R) {
             $Prev .= "?";
         }
         $Prev .= $this->StartStr . "=" . ($this->PageCurrent + 1) * $this->Limit;
         $Prev .= "&" . $this->CurStr . "=" . ($this->PageCurrent + 1);
         $Prev .= $this->Args;
         if (!$this->NoNext) {
             echo "<IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\"><span title=\"" . $Lang['Next'] . "\" class=\"" . $this->PrevNextClass . "\"><a href=\"" . $Prev . "\">" . $Lang['Next'] . "&nbsp;<IMG SRC=\"" . FileLink("images/page_next.gif") . "\" WIDTH=11 HEIGHT=11 BORDER=0 ALT=\"\"></a></span><IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\">";
         }
         $Prev = $this->Filename;
         if (MOD_R) {
             $Prev .= "?";
         }
         $Prev .= $this->StartStr . "=" . ($this->Pages - 1) * $this->Limit;
         $Prev .= "&" . $this->CurStr . "=" . ($this->Pages - 1);
         $Prev .= $this->Args;
         if (!$this->NoNextNext) {
             echo " <span title=\"" . $Lang['Last'] . "\" class=\"" . $this->PrevNextClass . "\"><a href=\"" . $Prev . "\">" . $Lang['Last'] . "&nbsp;<IMG SRC=\"" . FileLink("images/page_last.gif") . "\" WIDTH=11 HEIGHT=11 BORDER=0 ALT=\"\"></a></span><IMG SRC=\"" . FileLink("images/0.gif") . "\" WIDTH=10 HEIGHT=1 BORDER=0 ALT=\"\">";
         }
     }
     echo "</td></tr>";
 }
Пример #10
0
<?php 
echo GetForm(false, "CpId={$CpId}", false, "ID=\"DisableForm\"");
?>
<input type=hidden name="DisableContext" value=1>
</form>

<td><p align=center><IMG SRC="<?php 
echo FileLink("images/close_07.gif");
?>
" WIDTH="7" HEIGHT="7" BORDER="0" ALT=""></p></td>
<td width=118>
<p class=ContextClose><a href="javascript:;" onclick="CloseHelpLink();">закрыть</a></p>
</td></tr>

<tr><td><p align=center><IMG SRC="<?php 
echo FileLink("images/close_08.gif");
?>
" WIDTH="10" HEIGHT="8" BORDER="0" ALT=""></p></td>
<td width=118>
<p class=ContextClose><a href="javascript:;" onclick="var Obj=GetObj('DisableForm'); Obj.submit();">больше не показывать</a></p>
</td></tr>

</table>

</td>
</tr>
</table>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
Пример #11
0
 function AddJava($File, $Alt, $Java)
 {
     if (!$File) {
         return false;
     }
     $Button = "<td bgcolor=\"" . $this->TDBg . "\" class=\"" . $this->TDClass . "\" ";
     if ($this->MouseOverEnabled) {
         if ($this->MouseOverEvent) {
             $Button .= " onmouseover=\"" . $this->MouseOverEvent . "\" ";
         }
         if ($this->MouseOutEvent) {
             $Button .= " onmouseout=\"" . $this->MouseOutEvent . "\" ";
         }
     }
     $Button .= " >\n";
     $Button .= "<a href=\"javascript:;\" {$Java} class=\"" . $this->AClass . "\">\n";
     $Button .= "<img src=\"" . FileLink("buttons/" . $File) . "\" width=" . $this->ImgWidth . " height=" . $this->ImgHeight . " border=" . $this->ImgBorder . " alt=\"{$Alt}\" title=\"{$Alt}\" class=\"" . $this->ImgClass . "\">";
     $Button .= "</a></td>\n";
     $this->DoAdd($Button);
 }
Пример #12
0
	<?php 
        }
        ?>
	<a href="<?php 
        echo getURL("company", "EditId={$EditId}&HostId=" . $Row->ID);
        ?>
">
	<?php 
        echo $Row->HOST;
        ?>
	</a>
	</B>&nbsp;[&nbsp;<a href="<?php 
        echo getURL("get_code", "CpId={$EditId}&SiteId=" . $Row->ID, "admin");
        ?>
"><IMG SRC="<?php 
        echo FileLink("images/icon_code.gif");
        ?>
" WIDTH="13" HEIGHT="10" BORDER="0" ALT="">&nbsp;&nbsp;<?php 
        echo $Lang['SiteCode'];
        ?>
</a>]
	</td>

	<td align=right>
	<?php 
        $nsButtons->PostName = false;
        $nsButtons->Add("edit.gif", $Lang['Edit'], getURL("company", "EditId={$EditId}&HostId=" . $Row->ID));
        $nsButtons->Add("delete.gif", $Lang['Delete'], getURL("company", "EditId={$EditId}&DeleteHost=" . $Row->ID), $Lang['SiteDelWarning']);
        $nsButtons->Dump();
        ?>
	</td>
Пример #13
0
<a href="<?php 
    echo getURL("incampaign", "CampId=" . $Row->ID);
    ?>
">
<B><?php 
    echo $Row->NAME;
    ?>
</B></a>
&nbsp;<span style="font-size:10px;color:#86C71D">(<a href="<?php 
    echo getURL("paid_constructor", "GrpId=" . $Row->ID, "report");
    ?>
" style="font-size:10px;color:#86C71D"><?php 
    echo $Lang['Stat'];
    ?>
&nbsp;<IMG SRC="<?php 
    echo FileLink("images/icon_ref_stat.gif");
    ?>
" WIDTH="8" HEIGHT="8" BORDER="0" ALT=""></a>&nbsp;)</span>

<a href="<?php 
    echo getURL("incampaign", "CampId=" . $Row->ID);
    ?>
">
<?php 
    if ($Row->DESCRIPTION) {
        ?>
<br>
<span class=ListDescr><?php 
        echo $Row->DESCRIPTION;
        ?>
</span>
Пример #14
0
            echo "  <span class=LogRefGrp><B>[";
            echo "<a href=\"" . getURL("paid_constructor", "CpId=" . $Row->COMPANY_ID . "&CampId=" . $Row->CAMP_ID, "report") . "\">";
            echo $Row->CAMP_NAME;
            echo "&nbsp;<IMG SRC=\"" . FileLink("images/icon_ref_stat.gif") . "\" WIDTH=8 HEIGHT=8 BORDER=0>&nbsp;</a>]</B></span> ";
            if ($Row->CAMP_KEYWORD) {
                echo " <span class=LogRefGrp>[";
                echo "<a href=\"" . getURL("paid_constructor", "CpId=" . $Row->COMPANY_ID . "&WhereArr[0][Mode]=Camp&WhereArr[0][Id]=" . $Row->CAMP_ID . "&GroupBy=CampKey", "report") . "\">";
                echo $Row->CAMP_KEYWORD . "</a>]</span> ";
            }
        }
        ?>
	<?php 
        if ($Row->SPLIT_ID > 0) {
            echo " <span class=LogRefGrp><B>[";
            echo "<a href=\"" . getURL("natural_constructor", "CpId=" . $Row->COMPANY_ID . "&WhereArr[0][Mode]=Split&WhereArr[0][Id]=" . $Row->SPLIT_CAMP_ID . "&GroupBy=Page", "report") . "\">";
            echo $Row->SPLIT_NAME . "&nbsp;<IMG SRC=\"" . FileLink("images/small_icon_split-a.gif") . "\" WIDTH=13 HEIGHT=8 BORDER=0>&nbsp;</a>]</B></span>";
        }
        ?>

	<?php 
        if ($ViewNode) {
            ?>
	<span style="font-size:10px;">[Node: <a <?php 
            echo $Row->NODE_START ? "name=\"Node" . $Row->COOKIE_LOG . "\"" : "";
            ?>
 href="#Node<?php 
            echo $Row->COOKIE_LOG;
            ?>
"><?php 
            echo $Row->NODE_START ? "<b>" : "";
            echo $Row->COOKIE_LOG;
Пример #15
0
;
var MaxYear=<?php 
echo isset($MaxYear) ? $MaxYear : date('Y');
?>
;
var CloseAfterSelect=true;
var CalendarShowed=true;
var PrevReturnField=false;
var TodayIs="<?php 
echo $Lang['TodayIs'];
?>
";
var SelectedTZ=false;

if (getCookie('<?php 
echo COOKIE_PFX;
?>
auto_tz')) SelectedTZ=0;
else SelectedTZ = <?php 
echo $nsUser->TZ;
?>
; 



</SCRIPT>
<script language="JavaScript" src="<?php 
echo FileLink("calendar.js");
?>
"></script>
Пример #16
0
"></p>
</td></tr>
</table>
</form>
<?php 
}
?>

</td><td width=33% valign=top>


<table width=100% cellpadding=4 cellspacing=0 border=0>
<tr><td>
<p><B>
<IMG SRC="<?php 
echo FileLink("images/icon_print.gif");
?>
" WIDTH="19" HEIGHT="16" BORDER="0" ALT="">&nbsp;<?php 
echo $Lang['PrintReport'];
?>
</B></p>
</td></tr>
<tr><td>
<p><input type=button value="<?php 
echo $Lang['Print'];
?>
" onclick="PrintVersion();" <?php 
echo ValidVar($Print) ? "disabled" : "";
?>
></p>
</td></tr>