text:
Music, Culture & More. For Music Addicts, By Music Addicts
Vinyl Writer Interviews
An Interview with Andrew Toy
Andrew Daly March 10, 2021 October 26, 2021
I will never get tired of speaking with drummers, and today is no exception. What is great about this one is Andrew Toy is stepping out from behind the drum kit and embarking on his own solo career, with his debut album Guardrails, which you can grab via Andrew's Bandcamp here.
Today, I've got Andrew Toy aboard for a chat, and it doesn't disappoint. Andrew is incredibly talented, articulate and has awesome taste in music. We touch on his roots in music and as a drummer, the recording of his new album Guardrails, his thoughts on the scene today and much more. Dig in.
Andrew (Daly):
Andrew, thank you for taking the time to speak with us. This last year has been rough, right? How are you holding up during this seemingly ever-raging dumpster fire?
Andrew (Toy):
My pleasure! Yes it's been a year for sure. I'm doing alright, trying to adapt and stay positive as best as possible. There's less gigging of course, which sucks, but more time for family and working on music, which is fantastic.
Tell us about your backstory. What was your musical gateway so to speak?
I started drumming as a kid, in Delaware and since then it's been a constant progression of putting myself in different musical settings and trying to grow as much as possible. In my early 20s, I played in cruise ship orchestras for a while which, although the music wasn't all that interesting, really made me a better musician. Being around other musicians from around the world really opened my ears to a lot of things.
As an artist and drummer, who are some of your earliest and most important influences? How did you develop your signature sound?
Like a lot of kids in the 90s, I grew up with tons of Thrash, Grunge, Alt-Rock, etc. Some of my biggest early influences were Stephen Perkins (Jane's Addiction), Matt Cameron (Soundgarden), and Jimmy Chamberlin (Smashing Pumpkins). My sound, so to speak, is really a mishmash of all the things I've played and gotten inspiration from across the musical spectrum. Just about everything has had some impact, whether conscious or not.
Let's jump right in and talk about your new record Guardrails. What was the inspiration for the new album? What more can you tell us about the recording? Where can we get your new album and what formats will it be on?
The album was a little bit of a personal experiment to see what I would come up with when left to my own devices, without the usual parameters of playing in a band or as a hired gun. That is what got me thinking about this idea of musical "guardrails" and what happens when they're removed, for better or worse. More specifically, a lot of the musical ideas evolved from things I play in my live show and really took some interesting turns in a recording setting. Of course, everything that happened in 2020 is bound to have some psychic effect on anything made during that time. The album is available in CD and download formats at andrewtoy.net and on all the streaming services.
I really love the eclectic nature of your music. The blending of atmospheric Ambient with lush abstract elements is really incredible. Do you intentionally eschew genre boundaries, or does that come naturally to you?
Thanks! I suppose I intentionally take an "anything goes" attitude with my own music which is pretty liberating for me. But, at the same time, I try not to force anything just for the sake of being different. I like to think of different genres as building blocks that can be mixed and matched.
Let's talk about the production side of things. Do you work with outside producers, or do you self-produce your work? What goes into the decision either way?
For this project it was all me, though I did have it mastered by a great engineer, Ryan Schwabe. Since I'm usually playing on other peoples' recordings, I wanted to do all the production myself for a change. It was a fun process and the line between performance and production sort of disappeared.
What is the artist vision for you music going forward? How has it changed since you started? How have you evolved?
I love re-thinking instrument roles and using rhythm to create full pieces of music. I think my music has evolved in a pretty natural way with more depth and more fleshed-out ideas than when this started. I also love playing live, which in some ways is its own separate thing from the album.
Tell us about your songwriting process. How do you translate the sounds you hear in your head and make them a reality for us all to enjoy?
Sometimes the inspiration for a piece could be a single sound, like a kalimba, a helium tank, or an effect on a drum. Through improvising and experimenting, it might become something worthwhile (it also might not). It's like planting a seed; with some care and patience, something might come of it. Sometimes, keeping an image in mind, like a movie scene or a specific feeling, helps to keep the song on track.
Touring is usually a huge part of a working band's proverbial machine, but as we know, COVID has disallowed it. What do you miss most about touring?
Besides music, travel is my biggest passion and it is one of the best things a person can do for themselves. Traveling while making music is my favorite thing. Those days will come back eventually so I'm enjoying being a homebody in the meantime.
On the subject of touring, indie venues were in trouble before COVID and they definitely are now. I've seen and heard about places shutting down for good all over. With companies like Ticketmaster strangling the market and bands unable to tour and generate revenue for these places, what do you think the post-COVID landscape is going to be like out there?
The shows and the money aren't there now of course but when things open back up, people will be hungrier than usual for live music and there will be a need for venues. Hopefully some of the good venues can hold on until then. New ones will surely fill the void left by the ones that folded.
One disturbing fact I've learned over time is that Spotify doesn't pay artists well, if at all. What are your thoughts on that issue? How do we as fans do out part to help?
It really is a crime how little artists are paid but I try not to dwell on that. It's awfully nice being able to find so much music on the streaming platforms but of course it's at the artists' expense. I think most artists are set up to either sell music or accept donations online.
In a world dominated by capitalism and social media, can artists really, truly get ahead? How do we keep the playing field level so that everyone has a chance to succeed?
I like to think that the real artists find a way to make it happen and listeners genuinely want to hear something interesting. As depressing as the dwindling revenue streams are, technology has become a great democratizer; anyone can record and put out an album that the whole world has access to. The challenge then is cutting through the noise, finding an audience, and connecting with them. Hopefully with great music and not some kind of schtick.
Are you into records? Tapes? CDs? Digital? Where do you like to shop for music?
I wish I could say I had a huge vinyl collection but alas most of my music is on CDs or digital. I used to DJ on college radio and would make these treks to the Princeton Record Exchange, which is a massive record store. I mostly stream music now and I'm a little ashamed of that.
What are a few albums that mean the most to you and why?
There's a few albums that I remember hearing for the first time when I was younger and having some sort of revelation. Everyone has albums that, for whatever reason, just resonate with them on some level. A few big ones for me are:
Loveless by My Bloody Valentine
Nothing's Shocking by Jane's Addiction
Mind Bomb by The The
Cure For Pain by Morphine
Low by David Bowie
Combat Rock by The Clash
Who are some of your favorite artists? Ones that mean the most to you.
The ones mentioned above for sure. Some more recent bands that really inspire me are Dawn of Midi, Battles, and Jaga Jazzist.
Last question. What advice would you have for young artists just starting out? How do they stay afloat in a world that seems to be so abhorrent to creatives?
Keep your ears open, identify the things that really excite you, and find your own creative voice. I think intention is very important. If your intention is truly to create something special and to share that joy, it's going to be obvious, as opposed to someone just doing a job or trying to be popular. First and foremost, you have the listen.
Interested in diving deeper into the work of Andrew Toy? Check out the link below:
Dig this interview? Check out the full archives of Vinyl Writer Interviews, by Andrew Daly, here: www.vinylwritermusic.com/interview
Andrew Daly
With an immense passion for music, a disposition for writing, and an eagerness to teach and share both, Andrew decided to found VWMusic in 2019 as a freelance column under the column Idle Chatter. Over time, the column grew into a website that now features contributors who further the cause of sharing both a love of music and the art of journalism with the world through articles and interviews. While Andrew enjoys running the website, his real passion lies in teaching and facilitating others to do what they do best, and giving them the opportunity to explore their passions in the process. Some of Andrew's favorite artists include KISS, Oasis, ACϟDC, Elvis Presley, Ace Frehley, The Rolling Stones, Rush, The Pretenders, Led Zeppelin, The Gaslight Anthem, Iron Maiden, John Lennon, The Melvins, Noel Gallagher, Regina Spektor, Rory Gallagher, The Stone Roses, The Strokes, Thin Lizzy, Elvis Costello, Van Halen, Neil Young, Blur, Billy Joel, Bruce Springsteen, and many more.
andrew@vinylwriter.com
Tagged Andrew Toy, Drums, Indie
An Interview with Dave Hause
An Interview with Keith Rankin AKA Giant Claw
An Interview with Mark Knight of Bang Tango & Mark Knight & The Unsung Heroes
An Interview with Lilli Lewis
An Interview with Beat Zeller of Voodoo Rhythm Records & The Monsters
An Interview with Matte Namer of The FMs
An Interview with Jeff Wolfe of The Furys
An Interview with Eric "EG" Vines
Copyright All rights reserved Theme: Infinity News by Themeinwp.


Different than the person next to you. We specialize in each individual — not the mass workout mentality. That may work for some, but it is not appropriate for all. Someone's eyes only on you for a whole session.


text:
Recall Death Match Ready 2 Rumble
What happens when two of the most knowledgeable and aggressive politicos in Sacramento square off to debate the issue of the recall? Let's put it this way: It isn't pretty.
By Jeff Kearns
Photo Illustration by Andrea Diaz
The recall may be fun to watch, like a reality-TV show that has the Golden State walking a tightrope, blindfolded, above a pit of poisonous snakes as the rest of the world applauds and guffaws. But the stakes are higher, and there's a sadness to the spectacle, not so much because of what it portends for the state—California can survive anything—but for what this sudden race says about the depths to which politics have sunk here: At this point, there doesn't appear to be a good choice. Californians are forced to choose between endorsing a governor that few support or siding with his political rivals, who are willing to put the state into turmoil to serve their own ambitions.
Now, with two months left before voters head to the polls to choose a governor for the second time in a year, California is an international political spectacle. It's impossible to keep up with the story, which changes with every daily news cycle as past electoral losers come out of the woodwork to join publicity seekers (and maybe even a celebrity muscleman) on a ballot that could list hundreds of names.
The accompanying name-calling campaigns, legal challenges and minor scandals are playing out in fluid, uncharted political territory. And no one predicted any of this. The recall was limping along until a roguish character materialized to invest the cash the recall needed to succeed: Darrell Issa.
Faced with such confusing events and apparently unappealing choices, we called representatives from both sides of the recall battle to make their case, defend it and set us straight.
We got Bob Mulholland, the fire-breathing spinmeister for the California Democratic Party, to come in and spar with Sal Russo, chief strategist for the Recall Gray Davis Committee. Mulholland is an unabashed partisan with more zeal for mudslinging than anyone else in Sacramento. Russo was the Republican political consultant for Bill Simon's failed campaign for governor. Russo's recall committee is one of three squabbling factions that aim to depose the governor. (Russo also told us unequivocally during his visit that he won't be running Simon's campaign this time around.)
Getting these two representatives to come in, however, was easier than getting them to address key issues and answer questions head on. Both were willing to steer the debate back to their own talking points and make more attacks. What they said, or didn't say, however, is illustrative of the way this political debate will play out. Both sides want it to be about the other side.
In any case, just like reality TV, it at least makes great drama because no one knows how it will end.
SN&R: The governor said, "This recall is just a bunch of sour grapes by a bunch of losers." Is it? Mr. Russo, you and Simon lost last year, and now you're both back again.
RUSSO: This is the 32nd recall of a California governor. Thirty-one have failed. The only reason this one is succeeding is that people are angry at the failed leadership of Gray Davis. It doesn't matter who started it or why they started it or who financed it, it matters now that 2 million people have signed recall petitions and that 75 percent of Californians think Gray Davis is a failed governor. That's what the driving force is. If Davis did his job, he wouldn't have a recall.
SN&R: But this is right after an election. Can't Republicans accept losing?
RUSSO: Recall is like the lemon law. Voters bought a product called Gray Davis on Election Day, and shortly thereafter, they found out that in a fundamental way, he lied to get re-elected and denied that we had a budget problem with the consequence we had. And when voters found that out, by the governor's own admission in early December or late November, they became enraged, and that fueled what started out as a grassroots thing on talk radio.
SN&R: The legislative analyst, who is independent and nonpartisan, estimated the size of the deficit would be smaller than what the governor predicted last fall. Did she lie?
RUSSO: She said we had a catastrophe. The press, the legislative analyst, Bill Simon, Republicans in the Legislature and some Democrats said we had a catastrophe, but it was only Gray Davis who had the bully pulpit and assuaged the public that there wasn't a problem.
MULHOLLAND: Hogwash. Florida Governor Jeb Bush should be recalled under this rule. Jeb Bush on October 23, two weeks before his election, told the people of Florida he had no deficit. Two weeks after, he said they had a $2 billion deficit. Two months later, he said they had $4 billion.
SN&R: Now that the recall election is set, it's fair to say that we got to this point because the governor has done such a poor job, right Mr. Mulholland?
MULHOLLAND: Almost every governor in the country has opinion-poll problems. It all rests on a national economic mess put together by Bush Jr. and his fools running the economy. The second point is California got abused by Texas energy thugs led by Ken Lay. That's why Governor Davis suffers more than the others.
SN&R: Other Democrats acknowledge Davis isn't a good governor, that he hasn't engaged in anything, that he's coin-operated. A lot of people seem to believe that. In that sense, approval ratings for governors in other states don't matter.
MULHOLLAND: Only California has Darrell Issa with $2 million. Is Gray Davis the most charismatic person? No. He wasn't when he served his country in Vietnam, either. This is a race by Republicans led by Bill Simon, and now Darrell Issa, who think they can sneak into the governor's mansion through the back door on some right-wing agenda. It'll fail.
RUSSO: Californians disapprove of the job that Gray Davis is doing. This isn't a Republican Party effort; the Republican Party initially wasn't even for it. Big business, big labor and big political parties are against this recall. It's the people that are for it.
SN&R: Mr. Mulholland, the governor didn't distinguish himself in the electricity crisis. During the budget crisis, he was accused of being missing in action, putting out a budget and then hiding in his office. He wasn't fighting. Now that there's a threat to his political career, he's going to fight like a "Bengal tiger"?
MULHOLLAND: Gray Davis was elected by the voters to work with the Legislature on the budget, and the Republicans held up the budget deliberately. That's what his job is. Now, we're being challenged by these mobsters led by Darrell Issa.
SN&R: The question is: Why does the governor fight only when his career is on the line?
MULHOLLAND: He's been fighting these bastards all along. Republicans on day one this year said they wouldn't raise the taxes on Malibu millionaires. Democrats said we needed a Ronald Reagan approach. Ronald Reagan raised corporate tax, sales tax and other taxes and made budget cuts.
Republican strategist Sal Russo, left, engages Democratic spokesman Bob Mulholland on the governor's shortcomings and defends the motivations of the recall backers.
Photo By Larry Dalton
RUSSO: The governor has not led, whether it's the electricity crisis, water, roads, schools or the budget. The only time the governor leads, is when he gets money from campaign contributors.
SN&R: Mr. Russo, isn't the recall turning the biggest state in the union into a political circus and creating uncertainty that delays an economic recovery just because some wannabes want a shot at being governor? Doesn't this hurt the state?
RUSSO: We have three means of removing a governor in this state: by operation of law for conviction of certain felonies; impeachment for misconduct in office; and recall when we have a governor, as the ballot argument stated in 1911, who is dishonest or incapable or unsatisfactory.
SN&R: Then the question is: Isn't this an abuse?
RUSSO: No, why would you say that? The ballot argument makes very clear the purpose: dishonest, incapable, unsatisfactory. Californians believe he's dishonest, incapable, unsatisfactory, and that's what recall is for. Recall is the one reserved for the people. And it's the people that sign the petition and vote on Election Day.
SN&R: Is it the people in this case, or is it these people like Darrell Issa, who come along with a couple million dollars?
RUSSO: You could have anybody come along, but it takes 2 million people that sign the recall petition.
MULHOLLAND: Let's make clear, it's 1.3 million signatures, not 2 million. Second point is Darrell Issa financed this. Ronald Reagan also had three recall attempts against him. Ronald Reagan saw his opponents as abusing it, and we agree.
SN&R: Mr. Russo, people have called this a right-wing coup attempt. Is it?
RUSSO: No, it is truly a grassroots effort, or we would not have gotten the 2 million signatures. If you look at the last Los Angeles Times poll, a majority of Latinos support the recall. A third of all Democrats support the recall. A fourth of all liberals support the recall.
SN&R: What about the recall rally last weekend at the Capitol? Speakers called the centrist governor a socialist, everyone was white, and there was an anti-abortion guy running around holding up a huge photograph of a severed fetus head.
RUSSO: I think there was a tremendous amount of diversity there. The Pledge of Allegiance was said by a disabled veterans' activist, who's a socialist, who belongs to the Peace and Freedom Party. We had Miguel Araujo there from Centro Azteca, an immigrants' rights group. Support for the recall spans the ideological spectrum.
SN&R: If it's not extremist-driven, why are the state's top Republican leaders, Assembly Minority Leader Dave Cox and Senate Minority Leader Jim Brulte, not involved? And just today, President Bush said he'd stay out. Why won't they endorse this?
RUSSO: Political insiders never like it when the people get involved and are active and exert their will. It's a cozy club, the big business, big labor, big politicians are quite content to have it as their playground. They resent it when the people get involved.
SN&R: The president resents people's involvement?
RUSSO: Well, the president doesn't get involved in state issues, ballot issues, in any event, so I wouldn't expect the White House to be supportive, or big business, or big labor. This is definitely grassroots-driven.
MULHOLLAND: I took special note of Sal's criticism of Bush.
SN&R: Mr. Mulholland, what about what Mr. Russo said, that there are a ton of Democrats, independents and liberals who support the recall? Why are people like Peter Camejo and Arianna Huffington talking about running?
MULHOLLAND: Those folks didn't vote for us last November.
SN&R: But they're progressives, like the governor now says he is. Why are they supporting this? Why are they involved? And why did so many Democrats sign the petition?
MULHOLLAND: Collecting the signatures is easy if you've got the money. The key factor is that these people are saying, "Look at this guy we got." Well, they didn't vote for Gray Davis last November. This is driven by the people who lost last November.
SN&R: And the Democrats who signed the petition?
MULHOLLAND: Absolutely! Let's talk about that on October 7, when over 90 percent of Democrats will vote against this recall because they're going to see the opposition.
Sal Russo said the recall is a device that gives the people a voice in government—and that it's not being abused by rich egomaniacs.
SN&R: Look at the front-page headline in the San Francisco Chronicle: "Democratic unity on recall shatters." Representative Loretta Sanchez may get in. Are Democrats divided?
MULHOLLAND: She's not going to get in. Loretta and the others, five weeks ago—all 33 California Democrats in Congress—condemned this recall. There will be no major Democrat on the ballot except Governor Davis. The Republicans will have three to six candidates, and we will work with each one of them to discredit the others.
SN&R: Are Democrats scared?
MULHOLLAND: No. It's just headlines. No Democrat is really scared. We know that we won, and we know that when the liberals and other progressives see who is driving this recall—homophobes, anti-choice zealots and Darrell Issa—they'll vote against them.
RUSSO: You can't find a Democratic legislator in the state Capitol who thinks Davis is a good governor. Privately, they'll all tell you he's a horrible governor. Almost every time you hear from an opponent of the recall, they have nothing good to say about Gray Davis because he's such a failed governor.
SN&R: Let's talk about the governor's reputation as a contribution-driven governor who takes a ton of money and gives supporters what they want—
MULHOLLAND: Complete horse manure.
SN&R: But isn't that a reasonable—
MULHOLLAND: Absolutely not. Bush Jr. raised $100 million in 2000, way more than Governor Davis, and he's going to raise $250 million from the corporate scoundrels and the people he's given all these tax cuts to. The real financial issue in this campaign is the $60 million cost for a Darrell Issa recall campaign—and that's money taken out of our schoolchildren's lunchboxes.
SN&R: What about the prison guards? The union gave Davis a lot of money and then got a raise and avoided budget cuts.
MULHOLLAND: The people who help contribute to candidates are not the people who hate you. Your friends and supporters give contributions.
SN&R: Also about money: Part of your argument against the recall, Mr. Mulholland, is that it costs the state a lot of money. But it's a done deal; we're having an election. So, how's that still an issue?
MULHOLLAND: It's an issue for voters in the middle who say to themselves, "Are we going to start a trend here that Republicans, who lost all eight statewide races last November, are going to do a recall and force the voters of this state to pay a lot of money?" That's what's of concern to voters.
RUSSO: The cost of the election is a complete red herring. Under Gray Davis, our budget deficit grows by $30 million a day. So, it's one day of deficit. We spend $30 million in about three hours in the state of California. So, to get rid of Gray Davis and his $38 billion budget deficit, it's the best bargain taxpayers have ever had.
SN&R: Mr. Russo, the recall procedure was created as something to give people who aren't powerful and rich a voice in government, to give them power. But now it's being taken advantage of by millionaires like Darrell Issa and Bill Simon. Do you think Hiram Johnson, the Progressive Era governor who created the recall, would approve?
RUSSO: I think that at the end of the day, what matters is who's signing. You can't get voters to sign something they don't believe in. So, there's the reality that 2 million people have signed the recall petitions so far. This is clearly a grassroots effort, and it's enjoying very popular support.
SN&R: What about that issue, though, that these guys are some unbelievably wealthy Republicans who can afford to toss a few million out—
RUSSO: A lot of initiatives have been financed by special-interest groups. But at the end of the day, it's the voters that get to make the choice. That's how democracy works.
SN&R: What if Governor Simon takes office, and Democrats start another recall?
MULHOLLAND: In 24 hours.
SN&R: Wouldn't that be an abuse?
RUSSO: It would be abuse, No. 1. But No. 2, it'd be silly because the voters would never support a recall unless you had a failed governor.
SN&R: Mr. Mulholland, a senior Davis adviser was quoted in The New York Times as saying, "If it's Davis vs. Davis, he loses. He spent millions trashing other people, and he's never spent any time and money telling people why he's a decent guy. How can you rehabilitate the guy at this point? You have to move him off the scene and make this about something bigger." Can't anyone defend the governor? Does that mean the governor's team will just go on the attack again?
MULHOLLAND: Well, it's simple. We've got an election; now, it's Governor Davis vs. the Republican thugs, who are homophobes.
Bob Mulholland loves talking trash about Republican gubernatorial hopefuls Darrell Issa and Bill Simon, but he's not really willing to address the anger and disappointment many Californians feel toward the current governor.
SN&R: But his own team member said the governor is beyond rehabilitation.
MULHOLLAND: That's complete baloney. Notice they said "somebody," so there's no name there. This is going to be a really easy campaign for us. First of all, the Republican candidates, all five of them, are going to be in a hockey fight from day one. You already see that in the papers. These guys hate each other's guts.
SN&R: Can the governor defend himself? He's trying to frame this as a debate about swapping a progressive agenda for a far-right-wing agenda. Why can't he just stand up and say, "Hey, I'm a good governor. Leave me alone."
MULHOLLAND: Elections are about ideas and people and records, in the case of an incumbent. We have a good record. And we have some ideas for the future. And we're going to compare them to the Republicans, who want to put a woman in jail if she seeks an abortion.
SN&R: The Democrats' plan is not to run a Democratic candidate, but doesn't that refuse to acknowledge that there's some valid anger at the governor and that maybe he isn't suited to the job?
MULHOLLAND: No, no, no. Davis was elected by the people of the state. And we don't have a white flag in our arsenal.
RUSSO: Well, I think it's ridiculous that Gray Davis is pretending to be a progressive now because he's not a progressive. He's not anything but out for himself.
SN&R: One of the arguments that you made today, Mr. Russo, and that a lot of the other recall proponents have made, is that part of the reason we need to recall the governor is this huge budget mess that he got us into and this huge hole and that it was all his overspending. But how could that be? The governor has no leeway under Proposition 98, which dictates spending on education, plus Proposition 13. And all the other governors in the country are in the same mess. So, how does the budget get pinned on Davis?
RUSSO: The whole country suffers from a recession, but no state comes close to being in California's predicament. USA Today did a study that showed California—
SN&R: California has the biggest budget—
RUSSO: In percentage. USA Today did a study that showed California had the worst record of responding to the economic problems facing the country. We're the only state that literally did nothing for the last three years. If you fixed our spending, as of three years ago, and indexed it to population and growth and inflation, we'd have a surplus today. The problem is that Davis spent the one-time revenue spike that we had from capital-gains taxes and stock options, when everybody, including his own department of finance, said that's a one-time revenue source.
SN&R: The liberals in the Legislature can be blamed for spending, so can Republicans, who also wanted more money for schools, roads—
RUSSO: There's plenty of blame to go around, which is why the Legislature's poll numbers are about as bad as the governor's. But the governor is the person we look to be the leader. Everything Gray Davis does is for special-interest groups. He never does anything for the people.
MULHOLLAND: Davis served his country in Vietnam, and yes, it's true, he's done everything he can to help veterans in the state. On the energy thing, Pete Wilson has recently said, in the Contra Costa Times, that he takes full credit for the energy deregulation of California, and I think Sal should stand by his former governor.
After quizzing both sides, we then asked how they'd make a successful case to voters.
RUSSO: I think the winning case is that we have a failed governor. It doesn't matter what the issue is, whether it's the economy, the budget, education or the environment. It doesn't matter if you're liberal or conservative, Republican or Democrat. There's unanimity that he's a failed governor, and if we don't remove him and get a governor that will lead, the Golden State is just going to continue to get tarnished.
MULHOLLAND: Democratic voters and independents who lean Democratic will hear that the Clintons, the Gores, nine presidential candidates, eight statewide Democratic officials, some chambers of commerce, Democratic mayors, union leaders, some Republicans, and probably 75 percent of the editorial writers in this state will be against it, and for a very simple reason: Republicans led by Darrell Issa, with a criminal background, have not met a simple criteria in the voters' minds. The reason recall has never been used for a statewide official is Hiram Johnson didn't want it to be used just for some political agenda by one element of the Republican party.
Then, we let each cross-examine the other.
RUSSO: Other than the symbolic issues you talk about, about which the governor has absolutely no say, like global warming and abortion, which are total non-issues for a governor of this state, is there anything substantive that Gray Davis has done in California that anyone can be proud of?
MULHOLLAND: Absolutely. He's protected workers, he raised the minimum wage over the Republicans' opposition, and he signed a bill that'll give the people of this state paid family leave, which is similar to unemployment insurance. Republicans were opposed to paid family leave.
MULHOLLAND: Aren't you guys wrong to abuse the process to force the voters to spend $60 million on a recall, which you'll lose?
RUSSO: I never think it's wrong to let the people have a say in their government, and California has a proud progressive tradition of letting voters participate through initiative, referendum and recall. It's a precious right, and it's not abused by the people. Do special interests abuse it from time to time? Yes. But the final check always is that voters have to approve. So, the reason that we have 2 million signatures, the reason a majority support a recall, the reason voters disapprove of Gray Davis' performance in office is because he's a failed governor. And that's going to be the driving force in the recall election.
And then we gave them a chance to make closing arguments.
MULHOLLAND: On October 7 at 8 o'clock, it'll be known probably within an hour that the voters said no to the recall, and the only question will be what finishing order each of the Republicans is in as they all jockey for their next failed race. It'll be interesting to see if Darrell Issa, who's got nowhere to go but up, since he's at 4 percent in the polls, will now spend millions to build himself up or spend millions building himself up by attacking the others. Reporters should keep an eye on this. There's going to be an awful lot of nighttime work in this campaign—computerized phone calls and mail going to voters by Republicans attacking each other.
RUSSO: I just hope that the counties will process the election results quickly because we need the transition to be a week, not the whole 28 days that the secretary of state's talking about. The sooner we get Davis out, the better the people of California will be.
More Local Stories » Feature Story
Sounds like Americana
A new musical genre is forming in Sacramento. It is a move back in time to when songwriting came from the heart and the community.
The daily bread of politics
If you want to know how policy is made in this town, you only have to visit the fund-raising parties where big-money interests give checks to lawmakers. If you're a citizen, or journalist, good luck getting in.
The green parties
The past below
The forgotten city beneath modern Sacramento, known as "the underground," is shrouded in mystery and rife with urban myths. But this is true: It has historical significance and should be preserved.
I'm writing to save my life
Can writing about deep fears and desires help cure the sick? Members of the Sutterwriters group would say yes, without a doubt.

redpajama_set_name: RedPajamaCommonCrawl


text:
Q: Generate UUID with GWT Is there any way to generate UUID with GWT?

A: You can generate an UUID in GWT by reusing a Javascript UUID implementation an wrapping it using JSNI:
public native static String uuid() /*-{
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,
            function(c) {
                var r = Math.random() * 16 | 0, v = c == 'x' ? r
                        : (r & 0x3 | 0x8);
                return v.toString(16);
            });
}-*/;

If you want just an unique ID (not an UUID) to use in your GWT elements, use:
String id = DOM.createUniqueId();

redpajama_set_name: RedPajamaStackExchange


Do you notice a theme here? The message is pretty basic and is consistently supported by science. Your lifestyle habits are directly related to the quality and length of your life! If the goal for all of us is to live long and healthy, then this is like the fountain of youth. It keeps coming back to your healthy lifestyle habits. That's it! –That's all I have to say.
Well, I will keep going, but here's the secret to health in a nutshell: How you eat, move, think, socialize and rest/rejuvenate creates a cycle where you can improve your present moment, over and over again. So, it's about understanding the big picture and being consistent. It's NOT about torturing yourself or doing the world's toughest workout.
How much do you want to feel good? "Feeling good" is the number one health goal written by Nimble Fitness clients on their questionnaires when they complete their complimentary assessment. When is the last time you had your health program, alignment, posture and movement patterns assessed by a professional? At Nimble, our assessment has been fine-tuned over 19 years of training and thousands of sessions, and we keep encountering the same mistake in approach: Most new clients come in thinking they need a monster program to achieve their goals.
The truth is, it's not a complicated program you need, it's a strategic, customized plan that maximizes resources, time and energy. It needs to be simple! For instance, if you try to radically change all of your lifestyle habits at the same time, you will most likely fail. However, if you take the Nimble path and make one solid, new habit for life, you might just build your energy, and in turn your desire, to take on the next new habit.
Do one thing consistently and then do the next one thing. Before you know it, you will be feeling better, looking better and well on your way to living longer! Please contact me at daniel@www.nimblefitness.com if you want more info on how to improve your lifestyle habits, or if you feel like it's time for your Nimble assessment.
nimbleboyz2017-07-24T08:27:16-05:00July 19th, 2017|Categories: Nimble Blog|Comments Off on Fitness Secrets!


text:
It is possible to do more in less time — at least when it comes to your workouts. By incorporating interval training — that means bursts of high-intensity moves — you'll give your metabolism a huge boost, says Glenn Gaesser, Ph.D., director of the Kinesiology Program at the University of Virginia and author of The Spark. If you usually jog at a consistent pace, try adding a 30-second to one-minute sprint every five minutes, or, if you're on a treadmill, change up the incline for one-minute intervals.
"When you're anxious, your body feels like it's under a tremendous amount of stress all the time. This is why anxiety is a powerful trigger for weight gain. Two of the most proven cures for anxiety are exercise and spending time in nature. Combine both with an outdoor run or bike ride and race away from the anxiousness. Making this habit part of your lifestyle can help you stay lean for life." — David Zinczenko, author of the Zero Belly Cookbook
Little treats keep you from feeling deprived, so every day, allow yourself a bit of something you love (aim for 150 calories each). This kind of moderation is the difference between a "diet" and a lifestyle you can stick with forever. For salon owner Caitlin Gallagher, who lost 125 pounds, that meant replacing her nightly bowl of ice cream with a square of chocolate; social worker Brittany Hicks, who lost 100 pounds, started baking mini versions of her favorite pies.
FROM AROUND THE WEB I don't want to be a burden to my parents who are strugglingAd MilaapEarn Cashpoints every time you send money @Remit Money!Ad Remit MoneyBlood cancer is threatening to kill my son, please save himAd KETTOWhat if there is a way to expand your horizons in a snap?Ad The All-New RAV4The Best Resort Destinations For FamiliesAd Booking.comRemember Him? Try Not to Gasp when You See Him NowAd ExpertnewsblogSend money online, remit money to India!Ad Remit MoneyWe urgently need Rs 22.51 lakh to rescue our son from cancerAd KETTOWhat if a simple turn could take your passions up a notch?Ad The All-New RAV4Best NRI investment - Leased offices in India @ 9% yield.Ad Property ShareRemember Her? Try Not to Gasp when You See How She Looks NowAd ExpertnewsblogDonald and Melania Are Worried About Barron Trump's Very Alarming IQAd Expertnewsblog
Wow! I truly believe that I read this post today for a reason! I have been taking anxiety medication for the past 5 years and have gained almost 70 lbs in these 5 years. I've literally gone to doctor after doctor about my weight gain and no one could determine why I've gained so much weight. I've literally gone back and forth about quitting cold turkey and was so fearful about the withdrawl side effects. I feel like my weight gain is causing more anxiety than why I'm on the medicine to begin with. I can't thank you enough for sharing your story and motivating me. Thank you!!
About: Elizabeth's list of credentials for writing the kind of blog that helps you stay healthy is a long one — she graduated with dual degrees in food & nutrition and mass communication & journalism, and has now dedicated herself to developing healthy recipes and tips for achieving a wholesome, balanced lifestyle. She also shares her own musings — and her stunning photography — to add a personal touch that connects with readers in a meaningful way.
Hi Karen! I love Sparkpeople! I have been using there tracking tools for 4 years now and love it! It really helps you keep on track. I get ya about weight! I know I can't eat like I used to too! It's hard, but well worth the effort! Thank you for your kind words and don't worry you lose those last ten pounds! I'm working on 10 pounds myself! Just think positive, be true to yourself and know you can do it!!!
About: Loretta's certainly no stranger to blogging — she been sharing her weight loss journey since 2009. But the thing that caught our eye most about Loretta's blog is that unlike most long-time healthy living/weight loss bloggers, her website's not chock full of product reviews and recommendations, links to goods, etc. It's very authentic, as is Loretta. Loretta started at 460 pounds. Now, she hovers around 199. And she does it "one good choice at a time." Her style of writing is engaging and real — the kind of blog that you read and finish thinking, I really know this woman in a deep way. Bravo.
The difference in body composition (muscle loss and dehydration), metabolic effects, and the return of weight has been reported (9, 10). In a meta-analysis study, weight return had been reported in most participants (77%), who followed WL diets (11). In a classification of diets based on calorie restrictions and speed of WL, diets are divided to rapid WL, moderate WL, and slow WL.
And right up there on the FF list—weight loss. Sure, slow and steady may win the race, but who wants to plod along like a tortoise, especially when a warm weather getaway is right around the corner? Add these super weight loss foods to your day to get your weight-loss goals on hyperspeed. All of them have been scientifically proven to fry flab in 6 weeks or less! Tighten your seatbelt—in fact, you'll soon be tightening every belt!
Of the forty-two participants assigned to the trial, thirty-six subjects completed the study (n = 18 in slow WL group and n = 18 in rapid WL group). During the study, 3 individuals in the rapid WL group (medication consumption and discontinued) and 3 in the slow WL group (disinclination, medication consumption, and migration) were excluded (Figure 1). No significant side effect in the two study groups was detected.
It's not about the fancy tricks or fast fixes. It's not about losing 20 pounds in two weeks. It's about the slow, day-by-day actions that turn into sustainable habits. It's about learning how to develop sustainability and consistency. With nutrition, instead of thinking of foods in terms of yes/no lists and strict rules, it's more about eating wholesome foods, cooking nourishing meals, and developing sustainable habits. I love cooking, exercising, and learning about living a balanced lifestyle. I am prioritizing lasting wellness.
I try my very hardest not to compare myself to others. Everyone is going to have a different journey. It's hard when I can look at people that seem like they can eat whatever they want and not have to work hard to look great. I get that. But my journey is about the progress I an making and discovering my best self. I found a community to celebrate accomplishments together, which was a game changer. It is helpful, fun, and encouraging having buddies to journey with.
At SkinnyFit, we believe that healthy is beautiful, just like you. And no matter what phase of your weight loss journey you're in, we are here to help you look and feel positively radiant from the inside out. We believe that self-love, body positivity, and confidence creates a necessary foundation for a sustainable lifestyle change and that our dedication to providing premium, all-natural health, and wellness products will help you get there.
If you're a woman trying to lose weight and get fit, there's something you should know: It often takes longer for women to lose weight than men. And, if you've had a baby, you may have to factor in even more time. That said, women can do some things to speed up their weight loss. The following resources will help you learn more about how to maximize your cardio and strength training workouts, how to set realistic goals and how you can burn more calories.
Replace the negative voice in your head that's telling you to quit with a motivational saying that will inspire you to keep going even when it gets tough. "I powered through workouts telling myself, 'I can do hard things!'" says Megen Karlinsey, who kept off 150 pounds. Her mantra helped her accomplish a triathlon, which she signed up for to blast a weight loss plateau.
That's because strength training helps you build muscle, which will replace body fat. In fact, strength training is one of the few activities you can do to spike the amount of calories you burn, even after you're done with your workout. Bonus: When your metabolic rate becomes faster due to muscle growth, you'll have a little more wiggle room in your diet if that's something you struggle with, says Dr. Cheskin.


Although I have many excursions and activities to report on (I have been quite negligent at blogging in favour of going out in the field and organizing photos lately), I will begin with the transect studies done by first year Marine Science students.
On Friday 17 April, F block students travelled to Race Rocks at 7:30 AM to do their transect study.
They got their noses right into the quadrats to identify and count organisms.
Then they used water levels to move up in the intertidal zone, 50 cm at a time.
They recorded all their data and will analyze it in an upcoming class.
Weir's Beach was the site of the other two transect studies for different reasons. On Monday 20 April, we only had a 70 minute block for Marine Science due to the exciting announcement of the new president and head of Pearson College. It was a beautiful sunny day – perfect for a transect study!
Although filling the water tubes was a little bit challenging (see above).
Tuesday 21 April was a very windy day and we were unable to get to Race Rocks (out of Pedder Bay even!) so instead C block went to Weir's Beach to collect their data too.
Laying out the transect lines was a significant challenge.
But the students persevered to collect data on the distribution of intertidal organisms.
See Flickr album of Transect studies 2015 for more photos of the three transect studies and a post on the Race Rocks blog for more on the F block transect study.
This entry was posted on April 22, 2015 at 1:17 pm and is filed under Field trips, Fun Activities, Marine organisms.	You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


The key ingredient for proper vessel formation that explains why numerous promising treatments have failed has been discovered by University of Virginia School of Medicine researchers. The discovery offers important direction for efforts to better treat a host of serious conditions ranging from diabetes to heart attacks and strokes.
Until now, scientists seeking to grow blood vessels have focused almost exclusively on growing only the inner layer of blood vessels, which are made up of endothelial cells. The hope was that these endothelial cells would then recruit any other cell types needed to form a complete, functional blood vessel. But researchers led by Gary K. Owens, PhD, director of UVA's Robert M. Berne Cardiovascular Research Center, have determined that those vessels can develop properly only if they're grown in conjunction with another cell type, known as perivascular cells, including smooth muscle cells and pericytes. The researchers liken these perivascular cells to the outer support layers of a rubber hose or on automobile tires, without which they burst or leak.
"Most of the studies of angiogenesis [blood vessel formation] have focused on the inner lining of the pipes themselves," researcher Daniel L. Hess said. "That's fairly well understood. But it's really not well understood how you get a complete functional blood vessel that can withstand the mechanical force exerted by blood pressure."
UVA's new discovery helps answer that - and, in so doing, saves scientists from the time, effort and cost of pursuing treatment strategies that will ultimately bear no fruit.
The discovery was made possible by the fortuitous convergence of research in two different labs at UVA. Hess was working on a model of peripheral artery disease in the labs of Owens and UVA's Brian Annex, MD, in the Robert M. Berne Cardiovascular Research Center, while another researcher, Molly R. Kelly-Goss, was working with a model of blood vessel growth she developed in the lab of Shayn M. Peirce, PhD, of UVA's Department of Biomedical Engineering.
By bringing those two models together, the researchers were able to determine the vital role of the perivascular cells in blood vessel formation and to identify a gene, Oct4, that is required for this process. Previously, Oct4 had been thought to be active only in embryonic stem cells during early development and to be permanently inactivated in adult organisms. This belief persisted until two years ago, when the Owens lab showed it was reactivated within smooth muscle cells during formation of atherosclerotic plaques inside blood vessels and required for formation of a protective fibrous cap on those lesions that prevents them from rupturing and setting off a heart attack or stroke - analogous to a patch on a tire. Now the lab has shown that Oct4 has an important role in the formation of the vessels themselves - ironically, being required for forming the protective outer wall of blood vessels.
They found that vessels that lacked perivascular cell coverage formed incompletely and leaked blood. "Multiple failed trials assumed the perivascular cells were just passive followers," Owens explained. But without them, he said, "the whole process comes to a halt." Importantly, they found that endothelial cells and perivascular cells communicate with one another via Oct4-dependent processes and, without it, functional non-leaky blood vessels or blood vessel networks cannot form.
New Drug -CD5-2 can help Mend the Damaged Blood Vessels and prevent vascular leakage that usually occurs in Diabetic Retinopathy.


text:
Anti-junta activist "Ja New" attacked yet again by unidentified assailants
Well known anti-junta political activist Sirawith Seritiwat, alias Ja New, has been seriously injured after he was again attacked by four unidentified men in front in the Bang Chan area of Bangkok on Friday morning.
The Democracy Restoration Group (DRG), of which Ja New is a core member, said he suffered multiple injuries in the attack and was rushed to Nawamin 1 Hospital.
The group condemned the unprovoked attack and urged the police to arrest the perpetrators as quickly as possible, adding that the pro-democracy activist was assaulted at a bus stop next to Ratchadapisek Soi 7 on June 2nd.
Ja New's mother, Mrs. Paktnaree, told the media that he has regained consciousness but is only just able to talk due to the wounds to his head and face.
Pol Maj-Gen Somnuk Noikong, commander of the 3rd division of the Metropolitan Police Bureau, said police have examined local CCTV footage and questioned some eyewitnesses, who claimed they saw four men, wearing full-face crash helmets, who parked their two motorcycles next to Soi Phraya Suren on Ram-Inthra Road.
When Ja New emerged from the Soi at about 11am, the four men attacked him with wooden clubs until he collapsed and then fled on their motorcycles.
Ja New has been assaulted numerous times, including while he was on his way to Hua Hin a few years ago to protest against alleged corruption in the construction of the Ratchapakdi Park by the army. His journey was interrupted by troops who stopped him and his colleagues mid-way and had them sent back to Bangkok.
The Future Forward party condemned the latest attack on Ja New and has demanded the authorities end this "intimidation of the people."
Future Forward secretary-general Piyabutr Saengkanokkul asked in his Facebook post today why there has been a complete failure by the police to bring the perpetrators of these attacks to justice.
attacked
Future Forward party
Resentment simmers within Palang Pracharat party over latest cabinet lineup
PM Prayut's cabinet announced
Bhumjaithai MP stripped of MP status and banned from politics for 5 years
PM issues final executive order to revoke about 100 NCPO orders
Opposition to intensify campaign for constitutional amendments


text:
New Zealand revamps IP regime
Wednesday 23rd April 2008
What's happening with New Zealand's latest IP legislation and draft bills under consideration.
New Zealand for the most part has rather antiquated intellectual property legislation. The Trade Marks Act was in force for nearly 50 years before being replaced in 2002 and the Patents Act has been in force for more than 50 years. In a flurry of activity, two IP-related pieces of legislation were passed in late 2006 and there are several other draft bills being considered.
The Geographical Indications (Wine and Spirits) Registration Act 2006 was introduced in late 2006 as well as the Evidence Act 2006, which broadened the scope of registered patent attorney privilege.
A Patents Bill and a Plant Variety Rights Bill have been drafted and both should be introduced into Parliament in early 2007.
The Copyright Digital Amendment Bill, which covers issues such as technological protection measures and format shifting, is likely to be passed some time in 2007. The government is also considering amendments to the commissioning rule.
The government has indicated it will introduce a Major Events Management Bill to combat ambush marketing in relation to sports events and concerts. Again, it is likely to be passed some time in 2007.
Despite only passing a new Trade Marks Act in 2002, the government has also indicated that it intends to accede to the Madrid Protocol and the Nice Agreement. It also recently signed the Singapore Treaty on the Law of Trade Marks. All of these changes will require amendments to the Trade Marks Act.
Intellectual property legislation has typically been a low priority for the New Zealand government and the indicated timeframes will not necessarily be met. There will be an election in New Zealand in 2008 and if the bulk of the legislation is not introduced in 2007 then it is unlikely to make any real progress in 2008.
This article was published in Managing Intellectual Property, February 2007.


text:
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class Audit_started extends CI_Controller {
    /*
     * Constructor
     */

    public function __construct() {
        parent::__construct();
        if ($this->session->userdata('ADMIN_ID') == '') {
            redirect(base_url('admin/login'));
        }
        $this->load->model('admin/Audit_started_model');
	$this->load->model(array('admin/Report','admin/Dashboard_model'));
        $this->load->helper(array('common_helper', 'form', 'download'));
        $this->load->library('form_validation');
    }

    public function index() {
        $data['main'] = 'admin/audit/audit_started';
        $data['title'] = 'Home | Audit Started';
        $data['record'] = $this->Audit_started_model->getData();
        $this->load->view('admin/includes/template', $data);
    }

    public function statewise() {
        $data['main'] = 'admin/audit/statewise';
        $data['title'] = 'Home | Audit State Wise';
        $data['states'] = getStates();
	    $data['states'][1]="All";
        $this->load->view('admin/includes/template', $data);
    }

     public function search() {
        $data['main'] = 'admin/audit/search';
        $data['title'] = 'Home | Audit State Wise';
        $data['states'] = getStates();
        $data['states'][1]="All";
        $data['val'] = $this->input->post('state');
        $data['school'] = $this->input->post('school');
	$data['state'] = $this->input->post('state');
		$state=$this->input->post('state');
		$school=$this->input->post('school');

		if($school==2 && $state==1)
		{
			$data['registerd_audit_1']=$this->Report->registerparticipationBystateall();
			$data['total_started_audit_1']=$this->Report->startparticipationBystateall();
		    $data['completed_1']=$this->Report->completeparticipationBystateall();
		    $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystateall();

		}else if($school==1 && $state==1){

			$data['registerd_audit_1']=$this->Report->registerparticipationBystateallsecondary();
			$data['total_started_audit_1']=$this->Report->startparticipationBystateallsecondary();
		    $data['completed_1']=$this->Report->completeparticipationBystateallsecondary();
		    $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystateallsecondary();

		} else if($school==0 && $state==1){

			$data['registerd_audit_1']=$this->Report->registerparticipationBystateallprimary();
			$data['total_started_audit_1']=$this->Report->startparticipationBystateallprimary();
		    $data['completed_1']=$this->Report->completeparticipationBystateallprimary();
		    $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystateallprimary();

		}
		else{

		if($school==0)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationBystateprimary($state);
		   $data['total_started_audit_1']=$this->Report->startparticipationBystateprimary($state);
		   $data['completed_1']=$this->Report->completeparticipationBystateprimary($state);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystateprimary($state);
		}

		if($school==1)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationBystatesecondary($state);
		   $data['total_started_audit_1']=$this->Report->startparticipationBystatesecondary($state);
		   $data['completed_1']=$this->Report->completeparticipationBystatesecondary($state);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystatesecondary($state);
		}

		if($school==2)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationBystate($state);
		   $data['total_started_audit_1']=$this->Report->startparticipationBystate($state);
		   $data['completed_1']=$this->Report->completeparticipationBystate($state);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationBystate($state);
		}

		}

		$data['record'] = $this->Audit_started_model->getStateWiseSchool($state,$school);
	    $data['state_id1']=$state;
        $this->load->view('admin/includes/template', $data);
    }
    /*
     * State Wise Excel Generation
     */

    public function excel($argID) {
        $this->load->dbutil();
        $row = $this->Audit_started_model->getExcelDataByState($argID);
        $name = 'registration2017_by_state.csv';
        force_download($name, $row);
    }

	 public function excel_region($argID) {
        $this->load->dbutil();
		if($argID=='East')
		{
		  $argID1=array("36", "26", "16", "1", "5"); //$east_india
		}

		if($argID=='West')
		{
		  $argID1=array("12", "21", "11", "9", "8"); //$west_india
		}

		if($argID=='North')
		{
		  $argID1=array("28", "15", "13", "29", "14", "34", "35", "10", "6"); //$north_india
		}

		if($argID=='South')
		{
		  $argID1=array("2", "17", "18", "31", "32", "19", "27"); //$south_india
		}

		if($argID=='North East')
		{
		  $argID1=array("3", "4", "22", "23", "24", "25", "30", "33"); //$north_east_india
		}

		if($argID=='Central')
		{
		  $argID1=array("7", "20"); //$central_india
		}

		if($argID=='All')
		{
		  $argID1=array("3","36", "26", "16", "1", "5","12", "21", "11", "9", "8","28", "15", "13", "29", "14", "34", "35", "10", "6","2", "17", "18", "31", "32", "19", "27","7", "20","4", "22", "23", "24", "25", "30", "33"); //$all
		}
	    $row = $this->Audit_started_model->getExcelDataByRegion($argID1);
        $name = 'registration2018_by_region.csv';
        force_download($name, $row);
    }

	public function regionwise() {
        $data['main'] = 'admin/audit/regionwise';
        $data['title'] = 'Home | Audit Region Wise';
        //$data['record']=$this->Audit_started_model->getData();
        $this->load->view('admin/includes/template', $data);
    }

	public function regionsearch() {
        $data['main'] = 'admin/audit/regionsearch';
        $data['title'] = 'Home | Audit Region Wise';
        $data['region'] = $this->input->post('region');
        $data['school'] = $this->input->post('school');
		 $region=$this->input->post('region');
		 $school=$this->input->post('school');

		 if($region=='East')
		{
		  $region1=array("36", "26", "16", "1", "5"); //$east_india
		}

		if($region=='West')
		{
		  $region1=array("12", "21", "11", "9", "8"); //$west_india
		}

		if($region=='North')
		{
		  $region1=array("28", "15", "13", "29", "14", "34", "35", "10", "6"); //$north_india
		}

		if($region=='South')
		{
		  $region1=array("2", "17", "18", "31", "32", "19", "27"); //$south_india
		}

		if($region=='North East')
		{
		  $region1=array("3", "4", "22", "23", "24", "25", "30", "33"); //$north_east_india
		}

		if($region=='Central')
		{
		  $region1=array("7", "20"); //$central_india
		}

		if($region=='All')
		{
		  $region1=array("3","36", "26", "16", "1", "5","12", "21", "11", "9", "8","28", "15", "13", "29", "14", "34", "35", "10", "6","2", "17", "18", "31", "32", "19", "27","7", "20","4", "22", "23", "24", "25", "30", "33"); //$all
		}

		 if($school==0)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationByregionprimary($region1);
		   $data['total_started_audit_1']=$this->Report->startparticipationByregionprimary($region1);
		   $data['completed_1']=$this->Report->completeparticipationByregionprimary($region1);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationByregionprimary($region1);
		}

		if($school==1)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationByregionsecondary($region1);
		   $data['total_started_audit_1']=$this->Report->startparticipationByregionsecondary($region1);
		   $data['completed_1']=$this->Report->completeparticipationByregionsecondary($region1);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationByregionsecondary($region1);
		}

		if($school==2)
		{
		   $data['registerd_audit_1']=$this->Report->registerparticipationByregion($region1);
		   $data['total_started_audit_1']=$this->Report->startparticipationByregion($region1);
		   $data['completed_1']=$this->Report->completeparticipationByregion($region1);
		   $data['total_notstarted_audit_1']=$this->Report->notstartparticipationByregion($region1);
		}

		 $data['region']= $region;
          $data['record'] = $this->Audit_started_model->getRegionWiseSchool($region,$school);
         $this->load->view('admin/includes/template', $data);
    }

	/*
     * PArtner Excel Generation
     */

   public function partnerexcel() {
        $this->load->dbutil();
        $row =$this->Audit_started_model->getallPartnerData();
        $name = 'Partner List.csv';
        force_download($name, $row);
    }

    /*
     * Send Feedback
     */
     public function feedback() {
	 $data['states'] = getStates();
	 $data['states'][0]="All";
	 $data['district'] = getDistricts();
	 $data['district'][0]="All";
	 $data['main'] = 'admin/audit/feedback';
	 $data['title'] = 'Home | Send Feedback';
         $this->load->view('admin/includes/template', $data);
     }
	/*
     * Send Filter Feedback
     */
	/*
     * Send Filter Feedback
     */
   public function filter_email() {

       $data['subject'] = $this->input->post('subject');
        $data['message'] = $this->input->post('message');

        ini_set('memory_limit', '-1');
        $mail = '';
        $filed = '';
        $byMail = $this->input->post('email');
        if ($byMail == 'coemail') {
            $filed = "a.coemail, a.schoolemail";
            $mail = "coemail";
        } else if ($byMail == 'schoolemail') {
            $filed = "a.coemail, a.schoolemail";
            $mail = "schoolemail";
        } else if ($byMail == "allemail") {
            $filed = "a.coemail, a.schoolemail";
            $mail = "both";
        }
        $category = array();
        $aid = array();
        $byPhase=$this->input->post('phase');
	$progress_range= $this->input->post('progress_range');
	$byComplete = $this->input->post('complete');
        $byProgress = $this->input->post('progress');
        $byCategory = $this->input->post('school_category');
        $bySchoolType = $this->input->post('school_type');
        $byAidType = $this->input->post('school_aid');
        $byState = $this->input->post('state');
        $byDistrict = $this->input->post('district');
        $bySchoolName = $this->input->post('schoolname');
        $rating = $this->input->post('rating');
	$byAlphabate = $this->input->post('alphabate');
	 $byBoard=$this->input->post('board');
       // $query = "SELECT a.id, a.udise, a.userid, a.name, a.country, a.state, a.district, a.city, a.progress, $filed, b.name AS state_name, c.name AS district_name, d.remark, d.phase FROM gsp_school AS a LEFT JOIN states AS b ON a.state=b.id LEFT JOIN cities AS c ON a.district=c.id LEFT JOIN tbl_sendmail AS d ON a.id=d.school_id  WHERE";
      // $query = "SELECT a.id,a.school_id,a.Q1S1,a.Q2G1,a.Q9G1, a.udise, a.userid,a.country, a.name, a.city, a.progress, $filed, b.name AS state_name, c.name AS district_name, a.remark, a.phase FROM tbl_sendmail AS a LEFT JOIN states AS b ON a.state=b.id LEFT JOIN cities AS c ON a.district=c.id  WHERE";
     $query = "SELECT a.date_added,a.address1,a.coname,a.address2,a.pincode,a.std,a.telephone,a.schoolemail,a.principle_name,a.coemail,a.comobile,a.password,a.mobile,a.principle_name,a.id,a.Q3G1,a.Q1S1,a.Q2G1,a.Q9G1, a.udise, a.userid,a.country, a.name, a.city, a.progress, $filed, b.name AS state_name, c.name AS district_name, a.remark, a.phase FROM gsp_filter AS a LEFT JOIN states AS b ON a.state=b.id LEFT JOIN cities AS c ON a.district=c.id  WHERE";
	$conditions = array();

        if ($byState != '') {
            if ($byState == "0") {
                $conditions[] = " a.state!='$byState'";
            } else {
                $conditions[] = " a.state='$byState'";
            }
        }

	if ($byDistrict != '') {
            if ($byDistrict == "0") {
                $conditions[] = " a.district!='$byDistrict'";
            } else {
                $conditions[] = " a.district='$byDistrict'";
            }
        }

        //school Name
        if (!empty($bySchoolName)) {
            $conditions[] = " a.name LIKE '%$bySchoolName%'";
        }

	if (!empty($byAlphabate)) {
            $conditions[] = " a.name LIKE '$byAlphabate%'";
        }

        //Schoo Type
        if (!empty($bySchoolType)) {
            foreach ($bySchoolType as $a) {
                $aid[] = " a.Q2G1='$a'";
            }
            $conditions[] = "(" . implode(' OR ', $aid) . ")";
        }

        //Progress Condition
        if (!empty($byProgress)) {

            foreach ($byProgress as $p) {

                if($p=='100')
            	{
            		$test[] = " a.progress='$p' AND complete_status = '0'";
            	}else{

            		$test[] = " a.progress='$p'";
            	}
            }
            $conditions[] = "(" . implode(' OR ', $test) . ")";
        }

	if (!empty($progress_range)) {
            $conditions[] = " a.progress BETWEEN 10 AND 40";
        }

        //Category
        if (!empty($byCategory)) {
            foreach ($byCategory as $c) {
                $category[] = " a.Q1S1='$c'";
            }
            $conditions[] = "(" . implode(' OR ', $category) . ")";

        }

        //School type aid
        if (!empty($byAidType)) {
            foreach ($byAidType as $u) {
                $Aid[] = "a.Q9G1='$u'";
            }
            $conditions[] = "(" . implode(' OR ', $Aid) . ")";
        }

        //school rating
        if (!empty($rating)) {
            $conditions[] = " a.remark LIKE '%$rating%'";
        }

	if($byBoard !=0)
        {
            $conditions[] = "a.Q3G1='$byBoard'";
        }

        //By Phase
        if($byPhase !=0)
        {
            $conditions[] = "a.phase='$byPhase'";
        }

	if($byComplete !='')
        {
            $conditions[] = "a.complete_status= '1'";
        }

        $sql = $query;

        if (count($conditions) > 0) {
            $sql .= implode(' AND ', $conditions);
        }
        //echo $sql; exit;
        $query = $this->db->query($sql);
        ///$data=$query->result_array();

        $data['states'] = getStates();
        $data['states'][0] = "All";
	$data['district'] = getDistricts();
        $data['district'][0]="All";
        $data['main'] = 'admin/audit/feedback-with-filter';
        $data['record'] = $query->result_array();
        $data['mail_status'] = $mail;
        $this->load->view('admin/includes/template', $data);
    }

	public function send_email() {

           //echo $this->input->post('send_mail'); exit;
        if(!empty(extract($this->input->post())))
        {

        	     $Totalemail = implode(",", $email_list);

        	   $Totalemailpp= explode(',', $Totalemail);

               $i=1;
        	   foreach ($Totalemailpp as $gg) {

        	    require_once APPPATH . "/third_party/pepipost/vendor/autoload.php";
				$client = new PepipostAPILib\PepipostAPIClient();
				$emailController = $client->getEmail();

				// Your Pepipost API Key
				$apiKey = '9fa182fa586cf4b70fad25044936cf7e'; #add apikey from panel here

				$body = new PepipostAPILib\Models\EmailBody();

				// List of Email Recipients
				$body->personalizations = array();
				$body->personalizations[0] = new PepipostAPILib\Models\Personalizations;
				$body->personalizations[0]->recipient = $gg;

				if($i==1){
                $body->personalizations[0]->recipientCc =  array('ranjita@cseindia.org','7417rohitarora@gmail.com');
                }

				//$body->personalizations[0]->recipientCc = array($Totalemail);
				             #To/Recipient email address

				// Email Header
				$body->from = new PepipostAPILib\Models\From;
				$body->from->fromEmail = 'support@greenschoolsprogramme.org';   #Sender Domain. Note: The sender domain should be verified and active under your Pepipost account.
				$body->from->fromName = 'Green School Programme';       #Sender/From name

				//Email Body Content
				$body->subject = "".$subject."";               #Subject of email
				$body->content = '<html><body>'.$message.'</html>'; #HTML content which need to be send in the mail body

				// Email Settings
				$body->settings = new PepipostAPILib\Models\Settings;
				$body->settings->clicktrack = 1;    #clicktrack for emails enable=1 | disable=0
				$body->settings->opentrack = 1;     #opentrack for emails enable=1 | disable=0
				$body->settings->unsubscribe = 1;   #unsubscribe for emails enable=1 | disable=0

				$response = $emailController->createSendEmail($apiKey,$body);

              $i++; }

				 #function sends email
				print_r(json_encode($response));

		$this->session->set_flashdata('success', 'Your Email is Successfully Send');

				redirect(base_url('admin/audit_started/feedback'));

        }

 }

    /**Get Smmary Data**/
	/*24-04-2018*/
	public function getSummary(){
	 $data['main'] = 'admin/audit/summary';
	 $data['title'] = 'Summary';
	 $data['School_18data']=$this->Audit_started_model->getSchool_18data();
	 $data['startedtheaudit_18data']=$this->Audit_started_model->getstartedtheaudit_18data();
	 $data['CompletedAuditButNotSubmitted_18data']=$this->Audit_started_model->getCompletedAuditButNotSubmitted_18data();
	 $data['SubmittedTheAudit_18data']=$this->Audit_started_model->getSubmittedTheAudit_18data();
	 $data['StartedAuditButDidNotComplete']=$this->Audit_started_model->getStartedAuditButDidNotComplete_18data();
	 $data['NotStartTheAudit_18data']=$this->Audit_started_model->getNotStartTheAudit_18data();
	 $data['CompletedAuditButNotSubmitted_18data']=$this->Audit_started_model->getCompletedAuditButNotSubmitted_18data();
         $this->load->view('admin/includes/template', $data);
	}
   /**Get School Delete**/
	/*24-04-2018*/
	public function getSchoolDelete(){
	 $data['main'] = 'admin/audit/delete-school';
	 $data['title'] = 'Summary';
         $this->load->view('admin/includes/template', $data);
	}

	public function getSchoolDisable(){
	 $data['main'] = 'admin/audit/unable-school';
	 $data['title'] = 'Summary';
      $this->load->view('admin/includes/template', $data);
	}

	public function getSchoolDisable1(){
	 $data['main'] = 'admin/audit/Disable-school';
	 $data['title'] = 'Summary';
      $this->load->view('admin/includes/template', $data);
	}

	public function foundationPartnerrexcel($partnerId){
	 $this->load->library('Excel');
	 $objPHPExcel = new PHPExcel();
	   $styleArray1 = array(
         'font'  => array(
         'bold'  => true,
		'name' => 'Calibri',
		'size'  => 13,
          ));

	  $partner_countgreen_2018=getPartnerWithAllCOUNT($partnerId,"data_2018","green");
	  $partner_countyellow_2018=getPartnerWithAllCOUNT($partnerId,"data_2018","yellow");
	  $partner_countorange_2018=getPartnerWithAllCOUNT($partnerId,"data_2018","orange");
	  $partner_countred_2018=getPartnerWithAllCOUNT($partnerId,"data_2018","red");

	  $partner_countgreen_2017=getPartnerWithAllCOUNT($partnerId,"data_2017","green");
	  $partner_countyellow_2017=getPartnerWithAllCOUNT($partnerId,"data_2017","yellow");
	  $partner_countorange_2017=getPartnerWithAllCOUNT($partnerId,"data_2017","orange");
	  $partner_countred_2017=getPartnerWithAllCOUNT($partnerId,"data_2017","red");

	  $partner_countgreen_2016=getPartnerWithAllCOUNT($partnerId,"data_2016","green");
	  $partner_countyellow_2016=getPartnerWithAllCOUNT($partnerId,"data_2016","yellow");
	  $partner_countorange_2016=getPartnerWithAllCOUNT($partnerId,"data_2016","orange");
	  $partner_countred_2016=getPartnerWithAllCOUNT($partnerId,"data_2016","red");

	  $partner_countgreen_2015=getPartnerWithAllCOUNT($partnerId,"data_2015","green");
	  $partner_countyellow_2015=getPartnerWithAllCOUNT($partnerId,"data_2015","yellow");
	  $partner_countorange_2015=getPartnerWithAllCOUNT($partnerId,"data_2015","orange");
	  $partner_countred_2015=getPartnerWithAllCOUNT($partnerId,"data_2015","red");
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("J3",$partner_countgreen_2018);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("J4",$partner_countyellow_2018);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("J5",$partner_countorange_2018);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("J6",$partner_countred_2018);

	  $objPHPExcel->setActiveSheetIndex()->setCellValue("K3",$partner_countgreen_2017);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("K4",$partner_countyellow_2017);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("K5",$partner_countorange_2017);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("K6",$partner_countred_2017);

	  $objPHPExcel->setActiveSheetIndex()->setCellValue("L3",$partner_countgreen_2016);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("L4",$partner_countyellow_2016);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("L5",$partner_countorange_2016);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("L6",$partner_countred_2016);

	  $objPHPExcel->setActiveSheetIndex()->setCellValue("M3",$partner_countgreen_2015);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("M4",$partner_countyellow_2015);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("M5",$partner_countorange_2015);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("M6",$partner_countred_2015);

	  $objPHPExcel->setActiveSheetIndex()->setCellValue("D4",$partner_countgreen_2018+$partner_countyellow_2018+$partner_countorange_2018+$partner_countred_2018);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("E4",$partner_countgreen_2017+$partner_countyellow_2017+$partner_countorange_2017+$partner_countred_2017);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("F4",$partner_countgreen_2016+$partner_countyellow_2016+$partner_countorange_2016+$partner_countred_2016);
	  $objPHPExcel->setActiveSheetIndex()->setCellValue("G4",$partner_countgreen_2015+$partner_countyellow_2015+$partner_countorange_2015+$partner_countred_2015);

	  $objPHPExcel->getActiveSheet()->getStyle('A7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('B7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('D7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('E7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('F7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('G7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('H7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('J7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('K7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('L7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('M7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('N7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('O7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('P7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('Q7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('R7')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C3')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C4')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C5')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('C6')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('D2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('E2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('F2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('G2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('H2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I3')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I4')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I5')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('I6')->applyFromArray($styleArray1);
	   $objPHPExcel->getActiveSheet()->getStyle('J2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('K2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('L2')->applyFromArray($styleArray1);
	  $objPHPExcel->getActiveSheet()->getStyle('M2')->applyFromArray($styleArray1);

	  $styleArray = array(
      'borders' => array(
          'allborders' => array(
              'style' => PHPExcel_Style_Border::BORDER_THIN
          )
      )
     );

	    $objDrawing = new PHPExcel_Worksheet_Drawing();
        $objDrawing->setName("GSP LOGO");
        $objDrawing->setDescription("GSP Partners Excel Dump");
        $objDrawing->setWorksheet($objPHPExcel->getActiveSheet());
		$logo="assets/img/excel1.jpg";
        $objDrawing->setPath($logo);
        $objDrawing->setWidth(160);
        $objDrawing->setCoordinates('A1');

		$objDrawing1 = new PHPExcel_Worksheet_Drawing();
        $objDrawing1->setName("GSP LOGO");
        $objDrawing1->setDescription("GSP Partners Excel Dump");
        $objDrawing1->setWorksheet($objPHPExcel->getActiveSheet());
		$logo1="assets/img/excel2.jpg";
        $objDrawing1->setPath($logo1);
        $objDrawing1->setWidth(150);
        $objDrawing1->setCoordinates('S1');

      $objPHPExcel->getDefaultStyle()->applyFromArray($styleArray);
	  $objPHPExcel->getActiveSheet()->getRowDimension(1)->setRowHeight("100px");
	  $objPHPExcel->getActiveSheet()
              ->getStyle("A1:Z1".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C2')->setWidth('100');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C3')->setWidth('50');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C4')->setWidth('50');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C5')->setWidth('50');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C6')->setWidth('50');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('B')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('C')->setWidth('50');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('D')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('E')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('G')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('H')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('I')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('J')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('K')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('L')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('M')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('N')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('O')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('P')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('Q')->setWidth('15');
	 $objPHPExcel->getActiveSheet()->getColumnDimension('R')->setWidth('15');
	 $objPHPExcel->setActiveSheetIndex()
	        ->setCellValue("C2"," ")
			->setCellValue("C3","Total Registrations from Bharti Foundation")
			->setCellValue("C4","Audit Completed")
			->setCellValue("C5","Audit started but not completed")
			->setCellValue("C6","Registered but not started")
            ->setCellValue("D2","2018")
            ->setCellValue("E2","2017")
            ->setCellValue("F2","2016")
			->setCellValue("G2","2015")
			->setCellValue("H2"," ")
			->setCellValue("I2","School Category")
			->setCellValue("I3","Green")
			->setCellValue("I4","Yellow")
			->setCellValue("I5","Orange")
			->setCellValue("I6","Red")
			->setCellValue("J2","2018")
			->setCellValue("K2","2017")
			->setCellValue("L2","2016")
			->setCellValue("M2","2015")
			->setCellValue("A7","2015")
			->setCellValue("B7","2015")
			->setCellValue("C7","2015")
			->setCellValue("A7","S. No")
			->setCellValue("B7","School ID")
			->setCellValue("C7","School Name")
			->setCellValue("D7","State")
			->setCellValue("E7","District")
			->setCellValue("F7","City")
			->setCellValue("G7","Pin code")
			->setCellValue("H7","School Email")
			->setCellValue("I7","Principal Name")
			->setCellValue("J7","Principal Mobile")
			->setCellValue("K7","Coordinator Name")
			->setCellValue("L7","Coordinator Email")
			->setCellValue("M7","Coordinator Mobile")
			->setCellValue("N7","Completeness 2018")
			->setCellValue("O7","Status 2018")
			->setCellValue("P7","Status 2017")
			->setCellValue("Q7","Status 2016")
			->setCellValue("R7","Status 2015");
		$partnerList=$this->Audit_started_model->getPartnerData($partnerId);
		$row=7;
		$sr_no=0;
		foreach($partnerList as $r){
		   ++$row;
		   $rowsData=getPartnerWithAllYears($r->id);
		   $data_2018=!empty($rowsData[0]->data_2018)?$rowsData[0]->data_2018:"NA";
		   $data_2017=!empty($rowsData[0]->data_2017)?$rowsData[0]->data_2017:"NA";
		   $data_2016=!empty($rowsData[0]->data_2016)?$rowsData[0]->data_2016:"NA";
		   $data_2015=!empty($rowsData[0]->data_2015)?$rowsData[0]->data_2015:"NA";
		   /**********************************************************/
		   /*Column Color Code On Yearwise 2015-2018*/
		   if($data_2015>=70){
		     $objPHPExcel->getActiveSheet()
              ->getStyle("R".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('7fa656');
		   }
		   if($data_2015>=50 && $data_2015<=69.9){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("R".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fcfc00');
		   }
		   if($data_2015>=35 && $data_2015<=49.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("R".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('d7851f');
		   }
		   if($data_2015<=34.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("R".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fc3300');
		   }
		   if(strcmp($data_2015,"NA")==0 || $data_2015==""){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("R".$row,$data_2015)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('ffffff');
		   }
		   /**********************************************************/
		   /*Column Color Code On Yearwise 2015-2018*/
		   if($data_2016>=70){
		     $objPHPExcel->getActiveSheet()
              ->getStyle("Q".$row,$data_2016)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('7fa656');
		   }
		   if($data_2016>=50 && $data_2016<=69.9){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("Q".$row,$data_2016)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fcfc00');
		   }
		   if($data_2016>=35 && $data_2016<=49.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("Q".$row,$data_2016)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('d7851f');
		   }
		   if($data_2016<=34.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("Q".$row,$data_2016)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fc3300');
		   }
		   if(strcmp($data_2016,"NA")==0 || $data_2016==""){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("Q".$row,$data_2016)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('ffffff');
		   }
		      /**********************************************************/
		   /*Column Color Code On Yearwise 2015-2018*/
		   if($data_2017>=70){
		     $objPHPExcel->getActiveSheet()
              ->getStyle("P".$row,$data_2017)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('7fa656');
		   }
		   if($data_2017>=50 && $data_2017<=69.9){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("P".$row,$data_2017)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fcfc00');
		   }
		   if($data_2017>=35 && $data_2017<=49.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("P".$row,$data_2017)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('d7851f');
		   }
		   if($data_2017<=34.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("P".$row,$data_2017)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fc3300');
		   }
		   if(strcmp($data_2017,"NA")==0 || $data_2017==""){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("P".$row,$data_2017)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('ffffff');
		   }
		      /**********************************************************/
		   /*Column Color Code On Yearwise 2015-2018*/
		   if($data_2018>=70){
		     $objPHPExcel->getActiveSheet()
              ->getStyle("O".$row,$data_2018)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('7fa656');
		   }
		   if($data_2018>=50 && $data_2018<=69.9){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("O".$row,$data_2018)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fcfc00');
		   }
		   if($data_2018>=35 && $data_2018<=49.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("O".$row,$data_2018)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('d7851f');
		   }
		   if($data_2018<=34.9){
		       $objPHPExcel->getActiveSheet()
              ->getStyle("O".$row,$data_2018)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('fc3300');
		   }
		   if(strcmp($data_2018,"NA")==0 || $data_2018==""){
		      $objPHPExcel->getActiveSheet()
              ->getStyle("O".$row,$data_2018)
              ->getFill()
              ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
              ->getStartColor()
              ->setRGB('ffffff');
		   }

		   $objPHPExcel->setActiveSheetIndex()
			->setCellValue("A".$row,++$sr_no)
			->setCellValue("B".$row,$r->id)
			->setCellValue("C".$row,$r->name)
			->setCellValue("D".$row,$r->state_name)
			->setCellValue("E".$row,$r->district_name)
			->setCellValue("F".$row,$r->city)
			->setCellValue("G".$row,$r->pincode)
			->setCellValue("H".$row,$r->schoolemail)
			->setCellValue("I".$row,$r->principle_name)
			->setCellValue("J".$row,$r->mobile)
			->setCellValue("K".$row,$r->coname)
			->setCellValue("L".$row,$r->coemail)
			->setCellValue("M".$row,$r->comobile)
			->setCellValue("N".$row,$r->progress)
			->setCellValue("O".$row,$data_2018)
			->setCellValue("P".$row,$data_2017)
			->setCellValue("Q".$row,$data_2016)
			->setCellValue("R".$row,$data_2015);
		}

	 $objPHPExcel->getActiveSheet()
     ->getStyle('C3:C4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('C5:C6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	  $objPHPExcel->getActiveSheet()
     ->getStyle('D3:D4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('D5:D6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('E3:E4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('E5:E6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('F3:F4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('F5:F6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('G3:G4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('G5:G6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('7fa656');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('I3')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('10c136');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('I4')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('fcfc00');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('I5')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('d7851f');
	 $objPHPExcel->getActiveSheet()
     ->getStyle('I6')
     ->getFill()
     ->setFillType(PHPExcel_Style_Fill::FILL_SOLID)
     ->getStartColor()
     ->setRGB('fc3300');
     $filename='PartnersData.xls';
		ob_end_clean();
     $objPHPExcel->setActiveSheetIndex(0);
     header('Content-Type: application/vnd.ms-excel; charset=UTF-8');
     header('Content-Disposition: attachment;filename="'.$filename.'"');
     header('Cache-Control: max-age=0');
     header('Cache-Control: max-age=1');
     header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
     header ('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified
     header ('Cache-Control: cache, must-revalidate'); // HTTP/1.1
     header ('Pragma: public'); // HTTP/1.0
     $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
     $objWriter->save('php://output');
	}

	/**This Function Used For Digital Certificate JSON**/
	public function getDigitalCertificateRecordJson(){
	   ini_set('memory_limit', '-1');
       $records=$this->Dashboard_model->getSchoolCertificateRecords();
	   $arr_school=array();
	   $i=0;
	   foreach($records as $record):
		   $arr_school[]=array('sr_no'=>++$i,
		    'school_id'=>$record->school_id,
		    'certificate_username'=>$record->certificate_username,
		    'certificate_schoolname'=>$record->certificate_schoolname,
		    'certificate_srno'=>$record->certificate_srno);
	   endforeach;
		$data['record']=array(
            "sEcho" => 1,
            "iTotalRecords" => count($arr_school),
            "iTotalDisplayRecords" => count($arr_school),
            "aaData"=>$arr_school);
		    echo json_encode($data['record']);
	}
	/**This Function Used For Digital Certificate Records**/
	public function getDigitalCertificateRecord(){
	    $data['main'] = 'admin/audit/all-digital-certificates';
        $data['title'] = 'Home | Digital Certificate Records';
        $this->load->view('admin/includes/template', $data);
	}
}

redpajama_set_name: RedPajamaGithub


The article goes over bulimia nervosa in a brief but descriptive article which is broken up in to three pages. Individuals with bulimia nervosa periodically engage in discreet eating periods, which can be considered to be binge eating, which is then followed by act of purging. This is a recurrent episode due to sense of lack of control, thus portraying an uncontrollable inappropriate behavior in order to prevent weight gain. This is common among mostly women such as gymnasts and models.Those who are bulimic have major concerns about their weight and shape. However, though their binge eating habits are uncontrollable, those consequences of eating unhealthy foods are undone by acts of self induced vomiting, a misuse of laxatives, restrictions, diuretics, enemas, and excessive exercising. For bulimia nervosa, there are two types, the purging type, which is when the individual regularly binge eats and then vomits, or uses laxative, diuretics and enemas, and the non-purging type, which is when individuals endure extreme dietary fasting and exercising.


Poles with saw, hook, extension, lopper, etc. - Extertronic, S.L.
Poles with saw, hook, extension, lopper, etc.
Pole There are 13 products.
Pruning saw with extendable pole with hook 1.85 to 2.90m. Japanese sheet with jagged, metal top hook telescopic handle and drag.
Pole scissors lopper with saw. Extensible from 1.30 to 2.50 m. triple multiplier mechanism of action.
Scissors with adjustable swivel head. Length: 1.64 mt.
Extensible saw hook, oval aluminum handles and Japanese toothed handsaw.
Hook saw dual oval pole attachment system. Aluminum telescopic pole.
Scissors white saw semi professional with triple action multiplier mechanism. Length: 2+2 mt.
Pruning shears with extensible pole. Length: 1,50-2,40mt.