This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In AA: I created a "Panel" placeholder and set the column span to 2 | |
| // I can't use the placeholder directly because it is itself a dijit | |
| // form load method: | |
| String appPath = Request.ApplicationPath; | |
| ScriptManager.RegisterStartupScript(this, GetType(), "AddReturnProduct", | |
| @"require({ packages: [{ name: 'Martin', location: '" + appPath + | |
| @"/MartinEng/js'}] }, ['Martin/Return/AddReturnProduct'], function(AddReturnProduct) { | |
| var s = new AddReturnProduct({}); | |
| dojo.place(s.domNode, dojo.byId('" + placeholder.ClientID + @"').parentElement, 'only'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Helper for the products grid used at the SalesOrder and Opportunity levels | |
| define(['dojo/_base/declare', 'dojo/aspect'], function (declare, aspect) { | |
| var Helper = declare([], { | |
| grid: null, | |
| constructor: function(grid) { | |
| this.grid = grid; | |
| this.setupDefaultProgram(); | |
| this.setupProductFilter(); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Helper for the products grid used at the SalesOrder and Opportunity levels | |
| define(['dojo/_base/declare', 'dojo/_base/lang', 'dojo/aspect', 'dojo/on', 'Sage/UI/Dialogs'], | |
| function (declare, lang, aspect, on, slxDialogs) { | |
| var Helper = declare([], { | |
| grid: null, | |
| constructor: function (grid) { | |
| this.grid = grid; | |
| this.setupMoveUpDownHandlers(); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Custom style scheme for InforCRM */ | |
| /* Using #EB6800 as primary color */ | |
| /* Using #E37221 as link color */ | |
| .dijitTab, | |
| .dijitTab .dijitTabInnerDiv, | |
| .dijitTabListWrapper, | |
| #MainHeader, | |
| #titlePane, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="QuickSearch.ascx.cs" Inherits="SmartParts_Contact_QuickSearch" %> | |
| <%@ Register Assembly="Sage.SalesLogix.Web.Controls" Namespace="Sage.SalesLogix.Web.Controls.PickList" TagPrefix="SalesLogix" %> | |
| <%@ Register Assembly="Sage.SalesLogix.Web.Controls" Namespace="Sage.SalesLogix.Web.Controls" TagPrefix="SalesLogix" %> | |
| <%@ Register Assembly="Sage.SalesLogix.Web.Controls" Namespace="Sage.SalesLogix.Web.Controls.Lookup" TagPrefix="SalesLogix" %> | |
| <%@ Register Assembly="Sage.SalesLogix.HighLevelTypes" Namespace="Sage.SalesLogix.HighLevelTypes" TagPrefix="SalesLogix" %> | |
| <style type="text/css"> | |
| .date input { | |
| width: 7em; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form enctype="multipart/form-data" method="POST"> | |
| <input type="file" name="upload"/> | |
| <input type="submit" value="Submit"/> | |
| </form> | |
| <?php | |
| $uploads_dir = "uploads/"; | |
| if($_SERVER['REQUEST_METHOD'] == 'POST'){ | |
| if(move_uploaded_file($_FILES['upload']['tmp_name'], $uploads_dir . basename($_FILES['upload']['name']))){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function generate_salt($length) { | |
| $seed = 'abcdefghijklmnopqrstuvwxyz' | |
| .'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| .'0123456789!@#$%^&*()"'; // and any other characters | |
| $rand = substr(str_shuffle(str_repeat($seed, $length)), 0, $length); | |
| return $rand; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, os, errno | |
| from subprocess import call | |
| HOSTS_FILE = "C:\\Windows\\System32\\drivers\\etc\hosts" | |
| VHOSTS_FILE = "C:\\wamp\\bin\\apache\\apache2.4.9\\conf\\extra\\httpd-vhosts.conf" | |
| WAMP_ROOT = "C:\\wamp\\www" | |
| APACHE_SERVICE_NAME = "wampapache64" | |
| def add_host_name(hostname): | |
| text = "127.0.0.1 %(hostname)s %(hostname)s.local\n" % \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function closeLightbox() { | |
| $('.pledge_dialog_overlay').remove(); | |
| } | |
| function centerDialog(content) { | |
| var height = content.height(); | |
| var winHeight = $(window).height(); | |
| var spacing = Math.max(0, (winHeight - height) / 2); | |
| var top = $(window).scrollTop() + spacing; | |
| // in case there is a header bar... try to find where the content starts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .image-container { | |
| width: 100%; | |
| position: relative; | |
| } | |
| figure { | |
| transition: left 0.5s, top 0.5s, width 0.5s, height 0.5s; | |
| } | |
| figure img { |