Merge branch 'master' of code.fronk.at:fronk/thetool
This commit is contained in:
@@ -35,10 +35,7 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
$this->filter_salescluster_ids[] = $campain_scluster->salescluster_id;
|
||||
}
|
||||
|
||||
if(!array_key_exists($campain_scluster->salescluster_id, $this->campaigns_by_scluster)) {
|
||||
$this->campaigns_by_scluster[$campain_scluster->salescluster_id] = [];
|
||||
}
|
||||
$this->campaigns_by_scluster[$campain_scluster->salescluster_id][] = $campaign->id;
|
||||
$this->campaigns_by_scluster[$campain_scluster->salescluster_id] = $campaign->id;
|
||||
|
||||
}
|
||||
$this->campaigns[$campaign->id] = $campaign;
|
||||
|
||||
@@ -29,6 +29,35 @@ class DashboardController extends mfBaseController {
|
||||
}
|
||||
}
|
||||
|
||||
protected function colorAction() {
|
||||
|
||||
foreach(TT_CABLE_COLORS as $name => $color) {
|
||||
if(!$color['two-color']) continue;
|
||||
$hex = $color['hex'];
|
||||
$hexfg = $color['hexfg'];
|
||||
$hex2 = $color['hex2'];
|
||||
$hexfg2 = $color['hexfg2'];
|
||||
$r = $color['r'];
|
||||
$g = $color['g'];
|
||||
$b = $color['b'];
|
||||
$r2 = $color['r2'];
|
||||
$g2 = $color['g2'];
|
||||
$b2 = $color['b2'];
|
||||
|
||||
|
||||
$class = ".btn-outline-".$name." {
|
||||
color: #$hexfg;
|
||||
border-left-color: #$hex;
|
||||
border-top-color: #$hex;
|
||||
border-right-color: #$hex2;
|
||||
border-bottom-color: #$hex2;
|
||||
background: linear-gradient(90deg, rgba($r,$g,$b,.5) 0%, rgba($r,$g,$b,.5) 50%, rgba($r2,$g2,$b2,.5) 50%, rgba($r2,$g2,$b2,.5) 100%);
|
||||
}";
|
||||
echo "<pre>$class</pre>\n";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
protected function pdfAction() {
|
||||
$order = new Order(7);
|
||||
$owner = new Address(1);
|
||||
|
||||
Reference in New Issue
Block a user